예제 #1
0
 public ImpulsDeviceDataRepository(VegaApiDBContext context)
     : base(context.ImpulsDeviceDatas, context)
 {
     if (context is null)
     {
         throw new ArgumentNullException(nameof(context));
     }
 }
 public MovingDeviceDataRepository(VegaApiDBContext context)
 {
     _context = context;
 }
 public MagnetDeviceDataRepository(VegaApiDBContext context)
 {
     _context = context;
 }
 public DeviceRepository(VegaApiDBContext context)
 {
     _context = context;
 }
예제 #5
0
 protected DeviceDataRepositoryBase(DbSet <T> dataSet, VegaApiDBContext context)
 {
     _dataSet = dataSet ?? throw new ArgumentNullException(nameof(dataSet));
     Сontext  = context ?? throw new ArgumentNullException(nameof(context));
 }
예제 #6
0
 public TemperatureDeviceDataRepository(VegaApiDBContext context)
     : base(context.TempDeviceData, context)
 {
 }