- 修复 #454 优化遗留的 bug,影响 Aop.AuditValue 事件;#521

This commit is contained in:
2881099
2020-11-06 08:42:56 +08:00
parent 5ad30ccb91
commit a73e882f4e
3 changed files with 16 additions and 17 deletions

View File

@ -374,7 +374,7 @@ namespace FreeSql.Internal.CommonProvider
changedDict.Add(col.Attribute.Name, true);
}
if (val == null && col.Attribute.MapType == typeof(string) && col.Attribute.IsNullable == false)
col.SetValue(data, val = "");
col.SetValue(d, val = "");
}
}
}