Update OwnsOne

This commit is contained in:
sunkaixuan 2025-02-01 14:48:54 +08:00
parent 57d1aa665b
commit b4e1f03ef6

View File

@ -422,7 +422,13 @@ namespace SqlSugar
if (!column.EntityName.ObjToString().StartsWith("<>f__AnonymousType")
&&column.PropertyInfo?.ReflectedType!=typeof(DbTableInfo))
{
var isOldOwnsOne = column.IsOwnsOne;
this.Context.CurrentConnectionConfig.ConfigureExternalServices.EntityService(property, column);
if (column.IsOwnsOne == true && isOldOwnsOne == false)
{
SetValueObjectColumns(result, property, column);
continue;
}
}
}
if (column.PropertyInfo.DeclaringType != null