mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-10-14 18:24:50 +08:00
⚠️feat: SqlSugar自动识别所有连接字符串
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Infrastructure.Extensions.AutofacManager
|
||||
public static TService GetService<TService>() where TService:class
|
||||
{
|
||||
Type typeParameterType = typeof(TService);
|
||||
return (TService)_provider.GetService(typeParameterType);
|
||||
return (TService)_provider?.GetService(typeParameterType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user