first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using AutoMapper;
|
||||
using MyNewProjectName.Application.Mappings;
|
||||
using MyNewProjectName.Domain.Entities;
|
||||
|
||||
namespace MyNewProjectName.Application.Features.Sample.Queries.GetSamples;
|
||||
|
||||
/// <summary>
|
||||
/// Sample DTO
|
||||
/// </summary>
|
||||
public class SampleDto : IMapFrom<SampleEntity>
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string? Description { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
public void Mapping(Profile profile)
|
||||
{
|
||||
profile.CreateMap<SampleEntity, SampleDto>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user