public UnitOfWork(IGameStoreContext db)
 {
     _db = db;
     _commentGenericRepository = new Lazy <GenericRepository <Comment> >(
         () => new GenericRepository <Comment>(_db));
     _gameGenericRepository = new Lazy <GenericRepository <Game> >(
         () => new GenericRepository <Game>(_db));
     _genreRepos = new Lazy <GenericRepository <Genre> >(
         () => new GenericRepository <Genre>(_db));
     _platformTypeRepos = new Lazy <GenericRepository <PlatformType> >(
         () => new GenericRepository <PlatformType>(_db));
 }
Exemple #2
0
 public CommentRepository(IGameStoreContext db)
     : base(db)
 {
     _db = db;
 }
Exemple #3
0
 public UnitOfWork(IGameStoreContext gameStoreDb, INorthwindContext northwindDb)
 {
     _gameStoreDb = gameStoreDb;
     _northwindDb = northwindDb;
 }
Exemple #4
0
 public GameStoreRepository(IGameStoreContext db)
 {
     _gameStoreDb = db;
 }
 public GenreRepository(IGameStoreContext db)
     : base(db)
 {
 }
 public PlatformTypeRepository(IGameStoreContext db)
     : base(db)
 {
 }
 public GenericRepository(IGameStoreContext database)
 {
     _database = database;
 }
Exemple #8
0
 public PublisherRepository(IGameStoreContext db)
     : base(db)
 {
 }