Пример #1
0
 public Repository(SmartHomeContext context)
 {
     Db    = context;
     DbSet = Db.Set <TEntity>();
 }
Пример #2
0
 public RechargeRepository(SmartHomeContext context) : base(context)
 {
     Db_MeterReading      = context.Set <MeterReading>();
     Db_MeterUser         = context.Set <MeterUser>();
     Db_TransactionDetail = context.Set <TransactionDetail>();
 }
Пример #3
0
 public TransactionRepository(SmartHomeContext context) : base(context)
 {
     Db_MeterReading = context.Set <MeterReading>();
 }
Пример #4
0
 public DevicesController(SmartHomeContext context)
 {
     _context = context;
 }
Пример #5
0
 public UnitOfWork(SmartHomeContext context)
 {
     _context = context;
 }
Пример #6
0
 public LightRepository(SmartHomeContext context)
 {
     _context = context ?? throw new ArgumentNullException();
 }
 public MeterReadingRepository(SmartHomeContext context) : base(context)
 {
 }
Пример #8
0
 public UserManagementRepository(SmartHomeContext context) : base(context)
 {
     Db_MeterUser = context.Set <MeterUser>();
 }