Set up multi-project solution with DbFirst API, Application, Domain, and Infrastructure layers. Implemented database-first EF Core for the Catalog entity, including domain, DTOs, repository, service, and controller. Configured AutoMapper, DI, Swagger, and project settings. Added .gitattributes and initial configuration files.
13 lines
234 B
C#
13 lines
234 B
C#
using AutoMapper;
|
|
using DbFirst.Domain.DomainEntities;
|
|
|
|
namespace DbFirst.Application.Catalogs;
|
|
|
|
public class CatalogProfile : Profile
|
|
{
|
|
public CatalogProfile()
|
|
{
|
|
CreateMap<Catalog, CatalogDto>().ReverseMap();
|
|
}
|
|
}
|