mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-25 04:27:14 +08:00
Update nav query default value
This commit is contained in:
@@ -428,7 +428,10 @@ namespace SqlSugar
|
||||
var firstObj = navObjectNamePropety.GetValue(item);
|
||||
if (OneToOneGlobalInstanceRegistry.IsNavigationInitializerCreated(firstObj))
|
||||
{
|
||||
navObjectNamePropety.SetValue(item, null);
|
||||
if (StaticConfig.QueryOneToOneEnableDefaultValue==false)
|
||||
{
|
||||
navObjectNamePropety.SetValue(item, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,5 +40,7 @@ namespace SqlSugar
|
||||
public static Action<ICacheService, string> CacheRemoveByLikeStringFunc { get; set; }
|
||||
public static Guid TableQuerySqlKey { get; set; }
|
||||
public static string BulkCopy_MySqlCsvPath { get; set; }
|
||||
|
||||
public static bool QueryOneToOneEnableDefaultValue { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user