public GenericRepository(IBookStoreDbContext context) { if (context == null) { throw new ArgumentException("An instance of DbContext is required to use this repository.", "context"); } this.Context = context; this.DbSet = this.Context.Set <T>(); }
public CreateOrderCommandHandler(IBookStoreDbContext db) { this.db = db; }
public SeedSampleDataCommandHandler(IBookStoreDbContext db) { this.db = db; }
public GetBooksListQueryHandler(IBookStoreDbContext db, IMapper mapper) { this.db = db; this.mapper = mapper; }
public UpsertClientCommandHandler(IBookStoreDbContext db) { this.db = db; }
public DeleteProductCommandHandler(IBookStoreDbContext db) { this.db = db; }
public BookService(IBookStoreDbContext bookStoreDb) { _books = bookStoreDb.GetCollection(); }
public DeleteClientCommandHandler(IBookStoreDbContext db) { this.db = db; }
public ReviewQueriesXmlParser(IBookStoreDbContext bookStoreDbContext, IMongoDbContext mongoDbContext) { this.bookStoreDbContext = bookStoreDbContext; this.mongoDbContext = mongoDbContext; }
public GetClientDetailQueryHandler(IBookStoreDbContext db) { this.db = db; }
public ReviewQueriesXmlParser(IBookStoreDbContext bookStoreDbContext) : this(bookStoreDbContext, new MongoDbContext()) { }
public BooksDataXmlImporter(IBookStoreDbContext bookStoreDbContext) { this.bookStoreDbContext = bookStoreDbContext; }