From 6100dd57ffb674878b96eefbc34fd9a1d1bae827 Mon Sep 17 00:00:00 2001 From: eugeniy_ivanov Date: Wed, 12 Apr 2023 00:40:40 +0500 Subject: [PATCH] add dbSet --- AsbCloudInfrastructure/Repository/GtrWitsRepository.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AsbCloudInfrastructure/Repository/GtrWitsRepository.cs b/AsbCloudInfrastructure/Repository/GtrWitsRepository.cs index 44b05a61..983c8755 100644 --- a/AsbCloudInfrastructure/Repository/GtrWitsRepository.cs +++ b/AsbCloudInfrastructure/Repository/GtrWitsRepository.cs @@ -58,13 +58,13 @@ namespace AsbCloudInfrastructure.Repository // return cacheData; var dateEnd = dateBeginUtc.AddSeconds(intervalSec); - var queryWitsInt = db.WitsItemInt + var queryWitsInt = db.Set() .Where(d => d.IdTelemetry == telemetry.Id && d.DateTime >= dateBeginUtc); - var queryWitsString = db.WitsItemString + var queryWitsString = db.Set() .Where(d => d.IdTelemetry == telemetry.Id && d.DateTime >= dateBeginUtc); - var queryWitsFloat = db.WitsItemFloat + var queryWitsFloat = db.Set() .Where(d => d.IdTelemetry == telemetry.Id && d.DateTime >= dateBeginUtc);