Update OwnsOne

This commit is contained in:
sunkaixuan 2024-08-15 11:09:33 +08:00
parent a8d9923d2b
commit fdb4f22fdb

View File

@ -386,6 +386,10 @@ namespace SqlSugar
UpdateServerTime = column.UpdateServerTime,
IsPrimarykey=column.IsPrimarykey
};
if (column.ForOwnsOnePropertyInfo != null)
{
columnInfo.DbColumnName = column.DbColumnName;
}
if (columnInfo.PropertyType.IsEnum() && columnInfo.Value != null)
{
if (this.Context.CurrentConnectionConfig.MoreSettings?.TableEnumIsString == true)