Update SqlSugarScope

This commit is contained in:
sunkaixuan 2023-01-09 20:18:09 +08:00
parent d443a9d497
commit 906db2bb06

View File

@ -28,7 +28,7 @@ namespace SqlSugar
foreach (var method in methods.Take(10))
{
var getInterfaces = method.GetMethod()?.ReflectedType?.GetInterfaces();
if (getInterfaces!=null&& getInterfaces.Any(it=>it.Name.IsIn("IJob")))
if (getInterfaces!=null&& getInterfaces.Any(it=>it.Name.IsIn("IJob", "IHostedService")))
{
key = $"{key}IJob";
break;