- 优化 AggregateRoot 不对比 CanUpdate = false 的字段 ;

This commit is contained in:
2881099
2025-03-02 14:10:39 +08:00
parent f681fbf51c
commit 17caa7bea9

View File

@@ -81,6 +81,7 @@ namespace FreeSql
if (table.ColumnsByCs.ContainsKey(col.CsName))
{
if (col.Attribute.IsVersion) continue;
if (col.Attribute.CanUpdate == false) continue;
var propvalBefore = table.GetPropertyValue(entityBefore, col.CsName);
var propvalAfter = table.GetPropertyValue(entityAfter, col.CsName);
//if (object.Equals(propvalBefore, propvalAfter) == false) changes.Add(col.CsName);