Removed direct usage of TbmyCatalog entity and DbSet. All create, update, and delete operations now use stored procedures. Entity lookups and mappings are performed via the VwmyCatalog view. Updated AutoMapper profile and DbContext configuration accordingly. Catalog creation now sets ChangedWho/ChangedWhen to "system" and current UTC time.
14 lines
300 B
C#
14 lines
300 B
C#
using AutoMapper;
|
|
using DbFirst.Domain.DomainEntities;
|
|
using DbFirst.Infrastructure.ScaffoldEntities;
|
|
|
|
namespace DbFirst.Infrastructure.Mappings;
|
|
|
|
public class CatalogInfrastructureProfile : Profile
|
|
{
|
|
public CatalogInfrastructureProfile()
|
|
{
|
|
CreateMap<VwmyCatalog, Catalog>();
|
|
}
|
|
}
|