mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 调整 IUpdate.SetDto 也支持 IgnoreClumns 的逻辑;
This commit is contained in:
@ -476,6 +476,7 @@ namespace FreeSql.Internal.CommonProvider
|
||||
foreach (var kv in dic)
|
||||
{
|
||||
if (_table.ColumnsByCs.TryGetValue(kv.Key, out var trycol) == false) continue;
|
||||
if (_ignore.ContainsKey(kv.Key)) continue;
|
||||
SetPriv(trycol, kv.Value);
|
||||
}
|
||||
}
|
||||
@ -483,6 +484,7 @@ namespace FreeSql.Internal.CommonProvider
|
||||
foreach (var dtoProp in dtoProps)
|
||||
{
|
||||
if (_table.ColumnsByCs.TryGetValue(dtoProp.Name, out var trycol) == false) continue;
|
||||
if (_ignore.ContainsKey(dtoProp.Name)) continue;
|
||||
SetPriv(trycol, dtoProp.GetValue(dto, null));
|
||||
}
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user