From c0d5e7c40f87c18fc7c53ffd810069d0b41cb849 Mon Sep 17 00:00:00 2001
From: 陈勇 <竞男@ASUNA>
Date: 星期五, 20 三月 2026 16:47:48 +0800
Subject: [PATCH] 同步
---
项目代码/WCS/WCSServer/WIDESEAWCS_Core/Utilities/EntityProperties.cs | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServer/WIDESEAWCS_Core/Utilities/EntityProperties.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServer/WIDESEAWCS_Core/Utilities/EntityProperties.cs"
index 11ea985..6bf4c55 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServer/WIDESEAWCS_Core/Utilities/EntityProperties.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServer/WIDESEAWCS_Core/Utilities/EntityProperties.cs"
@@ -173,11 +173,11 @@
if (sugarColumn == null)
return "璇烽厤缃甋ugarColumn灞炴��";
//蹇界暐涓庝富閿殑瀛楁涓嶅仛楠岃瘉
- if (property.Name.ToUpper() == keyName.ToUpper() || (ignoreFields != null && ignoreFields.Contains(property.Name)) || sugarColumn.IsOnlyIgnoreInsert || sugarColumn.IsOnlyIgnoreUpdate || sugarColumn.IsIgnore)
+ if (property.Name == keyName.FirstLetterToLower() || (ignoreFields != null && ignoreFields.Contains(property.Name)) || sugarColumn.IsOnlyIgnoreInsert || sugarColumn.IsOnlyIgnoreUpdate || sugarColumn.IsIgnore)
continue;
//涓嶅湪缂栬緫涓殑鍒楋紝鏄惁涔熻蹇呭~
- if (!dic.ContainsKey(property.Name.ToUpper()))
+ if (!dic.ContainsKey(property.Name.FirstLetterToLower()))
{
if (!sugarColumn.IsNullable)
{
@@ -187,12 +187,12 @@
}
continue;
}
- if(dic[property.Name.ToUpper()] != null)
+ if(dic[property.Name.FirstLetterToLower()] != null)
{
- string str = dic[property.Name.ToUpper()].ToString();
+ string str = dic[property.Name.FirstLetterToLower()].ToString();
//灏嗘墍鏈夌┖鍊艰缃负null
if (str == string.Empty)
- dic[property.Name.ToUpper()] = null;
+ dic[property.Name.FirstLetterToLower()] = null;
}
}
--
Gitblit v1.9.3