Esempio n. 1
0
 public UnitOfWork(DlAdminDbContext albumDbContext)
 {
     _albumDbContext   = albumDbContext;
     PictureRepository = new Repository <Picture>(albumDbContext);
     UserRepository    = new Repository <SysUser>(albumDbContext);
     RoleRepository    = new Repository <SysRole>(albumDbContext);
     DeptRepository    = new Repository <SysDept>(albumDbContext);
     NoticeRepository  = new Repository <SysNotice>(albumDbContext);
     MenuRepository    = new MenuRepository(albumDbContext);
     TaskLogRepository = new Repository <SysTaskLog>(albumDbContext);
     CfgRepository     = new Repository <SysCfg>(albumDbContext);
     DictRepository    = new Repository <SysDict>(albumDbContext);
 }
Esempio n. 2
0
 public Repository(DlAdminDbContext context)
 {
     Entities = context.Set <TEntity>();
 }