Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 public CommentRepository(IGameStoreContext db)
     : base(db)
 {
     _db = db;
 }
Exemplo n.º 3
0
 public UnitOfWork(IGameStoreContext gameStoreDb, INorthwindContext northwindDb)
 {
     _gameStoreDb = gameStoreDb;
     _northwindDb = northwindDb;
 }
Exemplo n.º 4
0
 public GameStoreRepository(IGameStoreContext db)
 {
     _gameStoreDb = db;
 }
Exemplo n.º 5
0
 public GenreRepository(IGameStoreContext db)
     : base(db)
 {
 }
 public PlatformTypeRepository(IGameStoreContext db)
     : base(db)
 {
 }
 public GenericRepository(IGameStoreContext database)
 {
     _database = database;
 }
Exemplo n.º 8
0
 public PublisherRepository(IGameStoreContext db)
     : base(db)
 {
 }