public DbAccess(IMasterPieceDatabaseSettings settings) { BsonSerializer.RegisterSerializationProvider(new BsonSerializationProvider()); var client = new MongoClient(settings.ConnectionString); MongoDatabase = client.GetServer().GetDatabase(settings.DatabaseName); }
public SalesController(IMasterPieceDatabaseSettings settings) { _blSales = new BlSales(settings); }
public BlProducts(IMasterPieceDatabaseSettings settings) : base(settings) => BlSaleProducts = new BlSaleProducts(settings);
public BlUsers(IMasterPieceDatabaseSettings settings) : base(settings) { }
public ProductsListController(IMasterPieceDatabaseSettings settings) => _blProductsList = new BlProductsList(settings);
public BlSales(IMasterPieceDatabaseSettings settings) : base(settings) { BlUsers = new BlUsers(settings); BlProductsList = new BlProductsList(settings); BlSaleProducts = new BlSaleProducts(settings); }
public BlProductsList(IMasterPieceDatabaseSettings settings) : base(settings) { }
public BlAbstract(IMasterPieceDatabaseSettings settings) { MongoDatabase = new DbAccess(settings).MongoDatabase; Collection = MongoDatabase.GetCollection <TEntity>(); }
public ProductsRegisterController(IMasterPieceDatabaseSettings settings) { _blProducts = new BlProducts(settings); }
public CategoriesController(IMasterPieceDatabaseSettings settings) => _blCategoriesList = new BlCategories(settings);
public UsersController(IMasterPieceDatabaseSettings settings) { _blUsers = new BlUsers(settings); }