This commit is contained in:
2881099
2021-07-06 18:51:01 +08:00
7 changed files with 222 additions and 41 deletions

View File

@ -351,8 +351,9 @@ namespace FreeSql.Internal.CommonProvider
{
var cols = columns.Distinct().ToDictionary(a => a);
_ignore.Clear();
IgnoreCanUpdate();
foreach (var col in _table.Columns.Values)
if (cols.ContainsKey(col.Attribute.Name) == true || cols.ContainsKey(col.CsName) == true)
if (!_ignore.ContainsKey(col.Attribute.Name) && (cols.ContainsKey(col.Attribute.Name) == true || cols.ContainsKey(col.CsName) == true))
_ignore.Add(col.Attribute.Name, true);
return this;
}

View File

@ -13,6 +13,7 @@ namespace FreeSql.Internal.Model
/// <summary>
/// 动态过滤条件
/// </summary>
[Serializable]
public class DynamicFilterInfo
{
/// <summary>