Пример #1
0
 public UnitOfWork(MeseumContext repositoryContext)
 {
     _repoContext = repositoryContext;
     Locations    = new LocationRepository(_repoContext);
     Categories   = new CategoryRepository(_repoContext);
     Postures     = new PostureRepository(_repoContext);
     Inventories  = new InventoryRepository(_repoContext);
     NewsEvents   = new NewsEventRepository(_repoContext);
 }
 public InventoryRepository(MeseumContext Context)
     : base(Context)
 {
 }
Пример #3
0
 public LocationRepository(MeseumContext Context)
     : base(Context)
 {
 }
Пример #4
0
 public Repository(MeseumContext Context)
 {
     db = Context;
 }
Пример #5
0
 public CategoryRepository(MeseumContext Context)
     : base(Context)
 {
 }
Пример #6
0
 public NewsEventRepository(MeseumContext Context)
     : base(Context)
 {
 }
Пример #7
0
 public PostureRepository(MeseumContext Context)
     : base(Context)
 {
 }