- 增加 IInsert IgnoreInsertValueSql 方法临时忽略 InsertValueSql 设置;

This commit is contained in:
2881099
2023-03-30 15:15:26 +08:00
parent 598c9ee078
commit 486a05a3f7
12 changed files with 48 additions and 10 deletions

View File

@ -67,7 +67,7 @@ namespace FreeSql.Dameng.Curd
if (col.Attribute.IsIdentity == false && _ignore.ContainsKey(col.Attribute.Name)) continue;
if (colidx2 > 0) sb.Append(", ");
if (string.IsNullOrEmpty(col.DbInsertValue) == false)
if (string.IsNullOrEmpty(col.DbInsertValue) == false && _ignoreInsertValueSql.ContainsKey(col.Attribute.Name) == false)
sb.Append(col.DbInsertValue);
else
{