mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update SqlSugarScope
This commit is contained in:
parent
d443a9d497
commit
906db2bb06
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user