mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-27 03:09:34 +08:00
Update SqlSugarScope
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user