Beispiel #1
0
 public UnitOfWork()
 {
     foodRep = new FoodRepository(db);
     restRep = new BaseRepository <Restaurant>(db);
 }
 public UnitOfWork()
 {
     db         = new OgrenciContext();
     egitimRep  = new EgitimRepository(db);
     ogrenciRep = new BaseRepository <Ogrenci>(db);
 }
Beispiel #3
0
 public Repository()
 {
     db = BaseRepository.ContextOlustur();
 }
Beispiel #4
0
 public UnitOfWork()
 {
     ArticleRep    = new BaseRepository <Article>(db);
     AuthorsRep    = new BaseRepository <Authors>(db);
     CommentaryRep = new BaseRepository <Commentary>(db);
 }