mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 14:04:44 +08:00
-
This commit is contained in:
parent
419f318d7e
commit
c5fd426529
@ -163,7 +163,7 @@ namespace SqlSugar
|
||||
this.Context.MappingColumns.Add(item.PropertyName, item.DbColumnName, item.EntityName);
|
||||
}
|
||||
var ignoreInfos = this.Context.IgnoreColumns.Where(it => it.EntityName == entityInfo.EntityName);
|
||||
foreach (var item in entityInfo.Columns.Where(it => it.IsIgnore))
|
||||
foreach (var item in entityInfo.Columns.Where(it => it.IsIgnore||it.IsOnlyIgnoreInsert))
|
||||
{
|
||||
if (!ignoreInfos.Any(it => it.PropertyName == item.PropertyName))
|
||||
this.Context.IgnoreColumns.Add(item.PropertyName, item.EntityName);
|
||||
|
Loading…
Reference in New Issue
Block a user