@@ -23,10 +23,6 @@ AnalysisResult analysisResult
2323 ) ;
2424 public Task < Inspection ? > ReadByInspectionId ( string id , bool readOnly = true ) ;
2525 public Task < Inspection ? > ReadByIsarInspectionId ( string id , bool readOnly = true ) ;
26- public Task < TagInspectionMetadata > CreateOrUpdateTagInspectionMetadata (
27- TagInspectionMetadata metadata
28- ) ;
29- public Task < IsarZoomDescription ? > FindInspectionZoom ( string tagId ) ;
3026 public string GetInspectionName (
3127 string installationCode ,
3228 Position position ,
@@ -263,36 +259,6 @@ await response.Content.ReadFromJsonAsync<SaraInspectionDataResponse>()
263259 ) ;
264260 }
265261
266- public async Task < TagInspectionMetadata > CreateOrUpdateTagInspectionMetadata (
267- TagInspectionMetadata metadata
268- )
269- {
270- var existingMetadata = await context
271- . TagInspectionMetadata . Where ( e => e . TagId == metadata . TagId )
272- . FirstOrDefaultAsync ( ) ;
273- if ( existingMetadata == null )
274- {
275- await context . TagInspectionMetadata . AddAsync ( metadata ) ;
276- }
277- else
278- {
279- existingMetadata . ZoomDescription = metadata . ZoomDescription ;
280- context . TagInspectionMetadata . Update ( existingMetadata ) ;
281- }
282-
283- await context . SaveChangesAsync ( ) ;
284- return metadata ;
285- }
286-
287- public async Task < IsarZoomDescription ? > FindInspectionZoom ( string tagId )
288- {
289- return (
290- await context
291- . TagInspectionMetadata . Where ( e => e . TagId == tagId )
292- . FirstOrDefaultAsync ( )
293- ) ? . ZoomDescription ;
294- }
295-
296262 public static int FloorWithTolerance ( double value , double tolerance = 0.06 )
297263 {
298264 var floored = ( int ) Math . Floor ( value ) ;
0 commit comments