Add VwmyCatalog view entity and update repository usage

Introduce VwmyCatalog as a keyless entity mapped to the VWMY_CATALOG database view. Update ApplicationDbContext to include the new DbSet and configure its mapping. Modify CatalogRepository to query the view instead of the table for GetAllAsync and GetByIdAsync. Add AutoMapper configuration for VwmyCatalog to Catalog. Add the VwmyCatalog entity class.
This commit is contained in:
OlgunR
2026-01-12 17:00:37 +01:00
parent 97eea94090
commit ce40abe20f
4 changed files with 55 additions and 4 deletions

View File

@@ -9,5 +9,6 @@ public class CatalogInfrastructureProfile : Profile
public CatalogInfrastructureProfile()
{
CreateMap<TbmyCatalog, Catalog>().ReverseMap();
CreateMap<VwmyCatalog, Catalog>();
}
}