public LoggerService(IMongoDBContext context) { // var client = new MongoClient(settings.ConnectionString); // var database = client.GetDatabase(settings.DatabaseName); _logger = context.Database().GetCollection <Logger>("Logger"); }
public CustomerRepository(IMongoDBContext db) { _db = db; }
public RoleService(IMongoDBContext dbClient) { _Role = dbClient.GetRoleCollection(); Builder = Builders <Role> .Filter; }
public AssignmentService(IMongoDBContext context) { _collection = context.Database().GetCollection <Assignment>("Assignment"); }
public ThreadRepository(IMongoDBContext context) : base(context) { }
public GetProductQueryHandler(IMongoDBContext mongoDBContext) { _mongoDBContext = mongoDBContext; }
/// <summary> /// Initializes a new instance of the <see cref="ProductMongoRepository"/> class. /// </summary> /// <param name="context">The db context.</param> public ProductMongoRepository(IMongoDBContext context) { _dbContext = context; }
public ArticleService(IMongoDBContext context) { _collection = context.Database().GetCollection <Article>("Article"); }
public CategoryRepository(IMongoDBContext context) : base(context) { }
public GetDeliveryDateQueryHandler(IMongoDBContext mongoDBContext) { _mongoDBContext = mongoDBContext; }
public UserService(IMongoDBContext dbClient) { _Users = dbClient.GetUserCollection(); Builder = Builders <User> .Filter; }
public ContactUsServices(IMongoDBContext context) { _mongoContext = context; _dbCollection = _mongoContext.GetCollection <ContactUs>(typeof(ContactUs).Name); }
public TokenRepository(IMongoDBContext context) { _context = context; }
public GetPickupPointQueryHandler(IMongoDBContext mongoDBContext) { _mongoDBContext = mongoDBContext; }
public KanBanColumnRepository(IMongoDBContext context) { _context = context; _collection = _context.GetCollection <KanBanColumn>("KanBanColumns"); }
public GetLayoutQueryHandler(IMongoDBContext mongoDBContext) { _mongoDBContext = mongoDBContext; }
public GetStoreQueryHandler(IMongoDBContext mongoDBContext) { _mongoDBContext = mongoDBContext; }
public void Begin() { _dbContext = new MongoDBContext(_dbContextConfig); }
public ShoppingRepository(IMongoDBContext context) : base(context) { }
public GetCurrencyQueryHandler(IMongoDBContext mongoDBContext) { _mongoDBContext = mongoDBContext; }
public CaffFileRepository(IMongoDBContext dbContext) : base(dbContext) { }
public PersonRepository(IMongoDBContext context) : base(context) { }
public GetCustomerRoleQueryHandler(IMongoDBContext mongoDBContext) { _mongoDBContext = mongoDBContext; }
public PedidoMGDBRepository(IMongoDBContext mongoDBContext) { _pedidos = mongoDBContext.GetDatabase().GetCollection <Pedido>("pedido"); }
protected BaseRepository(IMongoDBContext context) { _mongoContext = context; _dbCollection = _mongoContext.GetCollection <TEntity>(typeof(TEntity).Name); }
public void RegisterDBContext(IMongoDBContext context) { _dbContextType = context.GetType(); this._configuration = context.BuildConfiguration(); context.OnRegisterModel(_typeResolver); }
public EpicIdZoneService(IMongoDBContext context) { //var client = new MongoClient(settings.ConnectionString); //var database = client.GetDatabase(settings.DatabaseName); _epic = context.Database().GetCollection <EpicsIdZone>("EpicsIdZoneCollection"); }
public KanbanUSService(IMongoDBContext context) { _user = context.Database().GetCollection <KanbanUserStory>("userStoryKanban5"); }
public ListService(IMongoDBContext context) { _list = context.Database().GetCollection <List>("ListCollections2"); }
public ViewOrderServices(IMongoDBContext context) { _mongoContext = context; _dbCollection = _mongoContext.GetCollection <GiftOrder>(typeof(GiftOrder).Name); }