コード例 #1
0
 public UnitOfWork(ApplicationDbContext ctx)
 {
     _ctx           = ctx;
     ClientReviews  = new ClientReviewsRepository(_ctx);
     Leads          = new LeadsRepository(_ctx);
     Menus          = new MenusRepository(_ctx);
     WebsitePages   = new WebsitePagesRepository(_ctx);
     GlobalSettings = new GlobalValuesRepository(_ctx);
 }
コード例 #2
0
ファイル: UnitOfWork.cs プロジェクト: nemanjapu/Marik
 public UnitOfWork(ApplicationDbContext ctx)
 {
     _ctx           = ctx;
     Blog           = new BlogRepository(_ctx);
     Product        = new ProductRepository(_ctx);
     ProductImage   = new ProductImagesRepository(_ctx);
     GlobalSettings = new GlobalValuesRepository(_ctx);
     BlogTypes      = new BlogTypeRepository(_ctx);
     ClientReviews  = new ClientReviewsRepository(_ctx);
     Lead           = new LeadRepository(_ctx);
     WebsiteContent = new WebsiteContentRepository(_ctx);
 }