public Repository(SmartHomeContext context) { Db = context; DbSet = Db.Set <TEntity>(); }
public RechargeRepository(SmartHomeContext context) : base(context) { Db_MeterReading = context.Set <MeterReading>(); Db_MeterUser = context.Set <MeterUser>(); Db_TransactionDetail = context.Set <TransactionDetail>(); }
public TransactionRepository(SmartHomeContext context) : base(context) { Db_MeterReading = context.Set <MeterReading>(); }
public DevicesController(SmartHomeContext context) { _context = context; }
public UnitOfWork(SmartHomeContext context) { _context = context; }
public LightRepository(SmartHomeContext context) { _context = context ?? throw new ArgumentNullException(); }
public MeterReadingRepository(SmartHomeContext context) : base(context) { }
public UserManagementRepository(SmartHomeContext context) : base(context) { Db_MeterUser = context.Set <MeterUser>(); }