chore: MapOrThrow Methode in AutoMapperExtension als veraltet markieren
- Methode `MapOrThrow` als veraltet markiert. - Empfohlen, stattdessen `mapper.Map<T>` direkt zu verwenden. - Zusammenfassung aktualisiert, um die Veraltung widerzuspiegeln und Hinweise zur empfohlenen Methode zu geben.
This commit is contained in:
parent
e6849cd9c9
commit
68bfe93cf2
@ -4,6 +4,7 @@ namespace DigitalData.Core.DTO
|
|||||||
{
|
{
|
||||||
public static class AutoMapperExtension
|
public static class AutoMapperExtension
|
||||||
{
|
{
|
||||||
|
[Obsolete("use mapper.Map<T>")]
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Maps a source object to a destination object, or throws an exception if the mapping result is null.
|
/// Maps a source object to a destination object, or throws an exception if the mapping result is null.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -19,4 +20,4 @@ namespace DigitalData.Core.DTO
|
|||||||
"Hint: Ensure that the AutoMapper profile configuration for this mapping is correct.");
|
"Hint: Ensure that the AutoMapper profile configuration for this mapping is correct.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user