.net7需要这样写
This commit is contained in:
parent
15cb064758
commit
ba1b8393ef
@ -8,8 +8,8 @@
|
||||
},
|
||||
"dbConfigs": [
|
||||
{
|
||||
//"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog=GXAssembly;Port=3308",
|
||||
"Conn": "Data Source=192.168.0.58;User ID=root;Password=123456;Initial Catalog=GXAssembly;Port=3306;AllowLoadLocalInfile=true",
|
||||
"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog=GXAssembly;Port=3308",
|
||||
//"Conn": "Data Source=192.168.0.58;User ID=root;Password=123456;Initial Catalog=GXAssembly;Port=3306;AllowLoadLocalInfile=true",
|
||||
// "Conn": "Data Source=127.0.0.1;User ID=root;Password=123456;Initial Catalog=GXAssembly;Port=3306",
|
||||
//"Conn": "Data Source=192.168.50.163;User ID=root;Password=123456;Initial Catalog=GXAssembly;Port=3306",
|
||||
"DbType": 0, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3,PgSql = 4
|
||||
@ -50,7 +50,7 @@
|
||||
"DemoMode": false, //是否演示模式
|
||||
"SingleLogin": false, //是否单点登录
|
||||
"Upload": {
|
||||
"rootDirectory": "E:/git仓库/上海干巷/MES/file",
|
||||
"rootDirectory": "F:\\MES\\file",
|
||||
"uploadUrl": "http://127.0.0.1:7000", //本地存储资源访问路径
|
||||
"localSavePath": "", //本地上传默认文件存储目录 wwwroot+localSavePath
|
||||
"maxSize": 15, //上传文件大小限制 15M
|
||||
|
||||
62
DOAN.Model/MES/quality/QcFinishedproductDefectCollection.cs
Normal file
62
DOAN.Model/MES/quality/QcFinishedproductDefectCollection.cs
Normal file
@ -0,0 +1,62 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DOAN.Model.MES.quality
|
||||
{
|
||||
/// <summary>
|
||||
/// 成品缺陷
|
||||
/// </summary>
|
||||
[SugarTable("qc_finishedproduct_defect_collection")]
|
||||
public class QcFinishedproductDefectCollection
|
||||
{
|
||||
/// <summary>
|
||||
/// 雪花
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工单号
|
||||
/// </summary>
|
||||
public string Workorder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 缺陷描述
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "defect_describe")]
|
||||
public string DefectDescribe { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
public int? Number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CreatedBy
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "created_by")]
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// CreatedTime
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "created_time")]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// UpdatedBy
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "updated_by")]
|
||||
public string UpdatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// UpdatedTime
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "updated_time")]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@ -195,6 +195,7 @@ namespace DOAN.ServiceCore.SqlSugar
|
||||
{
|
||||
IsAutoRemoveDataCache = true
|
||||
};
|
||||
//TODO???
|
||||
db.GetConnectionScope(configId).CurrentConnectionConfig.ConfigureExternalServices = new ConfigureExternalServices()
|
||||
{
|
||||
DataInfoCacheService = cache,
|
||||
|
||||
@ -132,9 +132,10 @@ namespace DOAN.Common
|
||||
const BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic;
|
||||
//var entries = Cache.GetType().GetField("_entries", flags).GetValue(Cache);
|
||||
|
||||
//TODO ???
|
||||
//.net7需要这样写
|
||||
var coherentState = Cache.GetType().GetField("_coherentState", flags).GetValue(Cache);
|
||||
var entries = coherentState.GetType().GetField("_entries", flags).GetValue(coherentState);
|
||||
var entries = coherentState.GetType()?.GetField("_entries", flags)?.GetValue(coherentState);
|
||||
|
||||
var keys = new List<string>();
|
||||
if (entries is not IDictionary cacheItems) return keys;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user