public OrderRepository(IProductionMongoContext context, IMapper mapper)
     : base(context)
 {
     _context = context;
     _mapper  = mapper;
     DbSet    = _context.GetCollection <Order>(typeof(Order).Name);
 }
Exemple #2
0
 public DailyChoiceRepository(IProductionMongoContext context, IMapper mapper)
     : base(context)
 {
     _context = context;
     _mapper  = mapper;
     DbSet    = _context.GetCollection <DailyChoice>(typeof(DailyChoice).Name);
 }
 public UserRepository(IProductionMongoContext context, IMapper mapper, IOptions <AppSettings> appSettings)
     : base(context)
 {
     _context     = context;
     _mapper      = mapper;
     _appSettings = appSettings.Value;
     DbSet        = _context.GetCollection <User>(typeof(User).Name);
 }
Exemple #4
0
 public UnitOfWork(IProductionMongoContext context)
 {
     _context = context;
 }
Exemple #5
0
 public MenuRepository(IProductionMongoContext context)
     : base(context)
 {
 }
 public ProductionRepository(IProductionMongoContext context)
 {
     _context = context;
     DbSet    = _context.GetCollection <TEntity>(typeof(TEntity).Name);
 }