Primera subida
This commit is contained in:
27
back/Application/Mappers/MappingProfile.cs
Normal file
27
back/Application/Mappers/MappingProfile.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using AutoMapper;
|
||||
using back.Entities;
|
||||
using back.Entities.DTOs.Request;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
|
||||
namespace back.Application.Mappers
|
||||
{
|
||||
public class MappingProfile : Profile
|
||||
{
|
||||
public MappingProfile()
|
||||
{
|
||||
#region Mappings
|
||||
CreateMap<Casa, CasaRequestDto>();
|
||||
CreateMap<CasaRequestDto, Casa>();
|
||||
|
||||
CreateMap<Casa, CasaWitDirecctionRequestDto>();
|
||||
CreateMap<CasaWitDirecctionRequestDto, Casa>();
|
||||
|
||||
CreateMap<Persona, PersonaRequestDto>();
|
||||
CreateMap<PersonaRequestDto, Persona>();
|
||||
|
||||
CreateMap<Direccion, DireccionRequestDto>();
|
||||
CreateMap<DireccionRequestDto, Direccion>();
|
||||
#endregion Mappings
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user