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)); }
public CommentRepository(IGameStoreContext db) : base(db) { _db = db; }
public UnitOfWork(IGameStoreContext gameStoreDb, INorthwindContext northwindDb) { _gameStoreDb = gameStoreDb; _northwindDb = northwindDb; }
public GameStoreRepository(IGameStoreContext db) { _gameStoreDb = db; }
public GenreRepository(IGameStoreContext db) : base(db) { }
public PlatformTypeRepository(IGameStoreContext db) : base(db) { }
public GenericRepository(IGameStoreContext database) { _database = database; }
public PublisherRepository(IGameStoreContext db) : base(db) { }