public LoggerService(IMongoDBContext context)
 {
     //   var client = new MongoClient(settings.ConnectionString);
     //   var database = client.GetDatabase(settings.DatabaseName);
     _logger = context.Database().GetCollection <Logger>("Logger");
 }
Beispiel #2
0
 public CustomerRepository(IMongoDBContext db)
 {
     _db = db;
 }
Beispiel #3
0
 public RoleService(IMongoDBContext dbClient)
 {
     _Role   = dbClient.GetRoleCollection();
     Builder = Builders <Role> .Filter;
 }
Beispiel #4
0
 public AssignmentService(IMongoDBContext context)
 {
     _collection = context.Database().GetCollection <Assignment>("Assignment");
 }
Beispiel #5
0
 public ThreadRepository(IMongoDBContext context) : base(context)
 {
 }
 public GetProductQueryHandler(IMongoDBContext mongoDBContext)
 {
     _mongoDBContext = mongoDBContext;
 }
Beispiel #7
0
 /// <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;
 }
Beispiel #8
0
 public ArticleService(IMongoDBContext context)
 {
     _collection = context.Database().GetCollection <Article>("Article");
 }
Beispiel #9
0
 public CategoryRepository(IMongoDBContext context) : base(context)
 {
 }
Beispiel #10
0
 public GetDeliveryDateQueryHandler(IMongoDBContext mongoDBContext)
 {
     _mongoDBContext = mongoDBContext;
 }
Beispiel #11
0
 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;
 }
Beispiel #14
0
 public GetPickupPointQueryHandler(IMongoDBContext mongoDBContext)
 {
     _mongoDBContext = mongoDBContext;
 }
 public KanBanColumnRepository(IMongoDBContext context)
 {
     _context    = context;
     _collection = _context.GetCollection <KanBanColumn>("KanBanColumns");
 }
Beispiel #16
0
 public GetLayoutQueryHandler(IMongoDBContext mongoDBContext)
 {
     _mongoDBContext = mongoDBContext;
 }
Beispiel #17
0
 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)
 {
 }
Beispiel #23
0
 public GetCustomerRoleQueryHandler(IMongoDBContext mongoDBContext)
 {
     _mongoDBContext = mongoDBContext;
 }
 public PedidoMGDBRepository(IMongoDBContext mongoDBContext)
 {
     _pedidos = mongoDBContext.GetDatabase().GetCollection <Pedido>("pedido");
 }
Beispiel #25
0
 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");
 }
Beispiel #29
0
 public ListService(IMongoDBContext context)
 {
     _list = context.Database().GetCollection <List>("ListCollections2");
 }
 public ViewOrderServices(IMongoDBContext context)
 {
     _mongoContext = context;
     _dbCollection = _mongoContext.GetCollection <GiftOrder>(typeof(GiftOrder).Name);
 }