add dbSet

This commit is contained in:
eugeniy_ivanov 2023-04-12 00:40:40 +05:00
parent 84a783a76b
commit 6100dd57ff

View File

@ -58,13 +58,13 @@ namespace AsbCloudInfrastructure.Repository
// return cacheData;
var dateEnd = dateBeginUtc.AddSeconds(intervalSec);
var queryWitsInt = db.WitsItemInt
var queryWitsInt = db.Set<WitsItemInt>()
.Where(d => d.IdTelemetry == telemetry.Id
&& d.DateTime >= dateBeginUtc);
var queryWitsString = db.WitsItemString
var queryWitsString = db.Set<WitsItemString>()
.Where(d => d.IdTelemetry == telemetry.Id
&& d.DateTime >= dateBeginUtc);
var queryWitsFloat = db.WitsItemFloat
var queryWitsFloat = db.Set<WitsItemFloat>()
.Where(d => d.IdTelemetry == telemetry.Id
&& d.DateTime >= dateBeginUtc);