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:
Developer 02 2024-09-11 09:45:22 +02:00
parent e6849cd9c9
commit 68bfe93cf2

View File

@ -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.");
} }
} }
} }