Synchronous code

This commit is contained in:
sunkaixuan 2025-08-11 15:42:56 +08:00
parent 6b4d165181
commit b23e577567

View File

@ -744,6 +744,10 @@ namespace SqlSugar
var newAssembly = new ReflectionInoCacheService().GetOrCreate<Assembly>(key, () => {
try
{
if (string.IsNullOrEmpty(customDllName)&& CustomAssemblies?.Any() == true)
{
customDllName = CustomAssemblies.First().GetName().Name;
}
if (CustomAssemblies?.Any(it => it.FullName.StartsWith(customDllName))==true)
{
return CustomAssemblies?.First(it => it.FullName.StartsWith(customDllName));