mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 12:33:44 +08:00
Update ValuteObject
This commit is contained in:
@@ -271,11 +271,22 @@ namespace SqlSugar
|
||||
if (dataEvent != null && item != null)
|
||||
{
|
||||
foreach (var columnInfo in this.EntityInfo.Columns)
|
||||
{
|
||||
if (columnInfo.ForOwnsOnePropertyInfo != null)
|
||||
{
|
||||
var data = columnInfo.ForOwnsOnePropertyInfo.GetValue(item, null);
|
||||
if (data != null)
|
||||
{
|
||||
dataEvent(columnInfo.PropertyInfo.GetValue(data, null), new DataFilterModel() { OperationType = DataFilterType.UpdateByObject, EntityValue = item, EntityColumnInfo = columnInfo });
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
dataEvent(columnInfo.PropertyInfo.GetValue(item, null), new DataFilterModel() { OperationType = DataFilterType.UpdateByObject, EntityValue = item, EntityColumnInfo = columnInfo });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void CheckTranscodeing(bool checkIsJson = true)
|
||||
{
|
||||
|
Reference in New Issue
Block a user