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.
14 lines
313 B
C#
14 lines
313 B
C#
using AutoMapper;
|
|
using DbFirst.Domain.DomainEntities;
|
|
using DbFirst.Infrastructure.ScaffoldEntities;
|
|
|
|
namespace DbFirst.Infrastructure.Mappings;
|
|
|
|
public class CatalogInfrastructureProfile : Profile
|
|
{
|
|
public CatalogInfrastructureProfile()
|
|
{
|
|
CreateMap<TbmyCatalog, Catalog>().ReverseMap();
|
|
}
|
|
}
|