Exemple #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);
 }
Exemple #3
0
 public Repository()
 {
     db = BaseRepository.ContextOlustur();
 }
Exemple #4
0
 public UnitOfWork()
 {
     ArticleRep    = new BaseRepository <Article>(db);
     AuthorsRep    = new BaseRepository <Authors>(db);
     CommentaryRep = new BaseRepository <Commentary>(db);
 }