From 05946b151e7010b2b1a851892152e6b5d34151b3 Mon Sep 17 00:00:00 2001
From: lx <ex_lixiang17@cosl.com.cn>
Date: 星期五, 11 七月 2025 17:30:52 +0800
Subject: [PATCH] update
---
ErrorAnalysis.Repository/COFarResultRepository.cs | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/ErrorAnalysis.Repository/COFarResultRepository.cs b/ErrorAnalysis.Repository/COFarResultRepository.cs
index 63be29a..8554aed 100644
--- a/ErrorAnalysis.Repository/COFarResultRepository.cs
+++ b/ErrorAnalysis.Repository/COFarResultRepository.cs
@@ -1,4 +1,4 @@
-锘�//using ErrorAnalysis.Repository.Entity;
+锘縰sing ErrorAnalysis.Repository.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -11,13 +11,13 @@
{
public COFarResultRepository(string connectionString) : base(connectionString) { }
- //public COFarResultTable GetCOFarResult(string modelId, int porosity, int sw)
- //{
- // using (var context = new RetMcnpDbContext(_connectionString))
- // {
- // var result = context.COFarResultTables.FirstOrDefault(x => x.ModelID == modelId && x.Porosity == porosity && x.Sw == sw);
- // return result;
- // }
- //}
+ public COFarResultTable GetCOFarResult(string modelId, int porosity, int sw)
+ {
+ using (var context = new RetMcnpDbContext(_connectionString))
+ {
+ var result = context.COFarResultTables.FirstOrDefault(x => x.ModelID == modelId && x.Porosity == porosity && x.Sw == sw);
+ return result;
+ }
+ }
}
}
--
Gitblit v1.9.3