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