refactor(MappingProfile): create to handle model mappings
This commit is contained in:
@@ -50,12 +50,13 @@ public record EnvelopeReceiverQueryBase<TEnvelopeQuery, TReceiverQuery>
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// Repräsentiert eine Abfrage für Umschläge.
|
||||
/// </summary>
|
||||
public virtual TEnvelopeQuery Envelope { get; init; } = new();
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// Stellt eine Abfrage dar, um die Details eines Empfängers zu lesen.
|
||||
/// um spezifische Informationen über einen Empfänger abzurufen.
|
||||
/// </summary>
|
||||
public virtual TReceiverQuery Receiver { get; init; } = new();
|
||||
}
|
||||
19
EnvelopeGenerator.Application/Model/MappingProfile.cs
Normal file
19
EnvelopeGenerator.Application/Model/MappingProfile.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using AutoMapper;
|
||||
using EnvelopeGenerator.Domain.Entities;
|
||||
|
||||
namespace EnvelopeGenerator.Application.Model;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class MappingProfile : Profile
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public MappingProfile()
|
||||
{
|
||||
CreateMap<EnvelopeQueryBase, Envelope>();
|
||||
CreateMap<ReceiverQueryBase, Receiver>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user