| | |
| | | //using ErrorAnalysis.Repository.Entity; |
| | | using ErrorAnalysis.Repository.Entity; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | { |
| | | 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; |
| | | } |
| | | } |
| | | } |
| | | } |