public OrderRepository(IProductionMongoContext context, IMapper mapper) : base(context) { _context = context; _mapper = mapper; DbSet = _context.GetCollection <Order>(typeof(Order).Name); }
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); }
public UnitOfWork(IProductionMongoContext context) { _context = context; }
public MenuRepository(IProductionMongoContext context) : base(context) { }
public ProductionRepository(IProductionMongoContext context) { _context = context; DbSet = _context.GetCollection <TEntity>(typeof(TEntity).Name); }