mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-01 19:03:58 +08:00
Update Value object
This commit is contained in:
@@ -203,11 +203,19 @@ 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);
|
||||
dataEvent(columnInfo.PropertyInfo.GetValue(data, null), new DataFilterModel() { OperationType = DataFilterType.InsertByObject, EntityValue = item, EntityColumnInfo = columnInfo });
|
||||
}
|
||||
else
|
||||
{
|
||||
dataEvent(columnInfo.PropertyInfo.GetValue(item, null), new DataFilterModel() { OperationType = DataFilterType.InsertByObject, EntityValue = item, EntityColumnInfo = columnInfo });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void SetInsertItemByDic(int i, T item, List<DbColumnInfo> insertItem)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user