mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update OwnsOne
This commit is contained in:
parent
57d1aa665b
commit
b4e1f03ef6
@ -422,7 +422,13 @@ namespace SqlSugar
|
|||||||
if (!column.EntityName.ObjToString().StartsWith("<>f__AnonymousType")
|
if (!column.EntityName.ObjToString().StartsWith("<>f__AnonymousType")
|
||||||
&&column.PropertyInfo?.ReflectedType!=typeof(DbTableInfo))
|
&&column.PropertyInfo?.ReflectedType!=typeof(DbTableInfo))
|
||||||
{
|
{
|
||||||
|
var isOldOwnsOne = column.IsOwnsOne;
|
||||||
this.Context.CurrentConnectionConfig.ConfigureExternalServices.EntityService(property, column);
|
this.Context.CurrentConnectionConfig.ConfigureExternalServices.EntityService(property, column);
|
||||||
|
if (column.IsOwnsOne == true && isOldOwnsOne == false)
|
||||||
|
{
|
||||||
|
SetValueObjectColumns(result, property, column);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (column.PropertyInfo.DeclaringType != null
|
if (column.PropertyInfo.DeclaringType != null
|
||||||
|
Loading…
Reference in New Issue
Block a user