Browse Source

Quartz.net special special case problem

SqlSugar5
sunkaixuan 2 years ago
parent
commit
153f7180be
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/SugarProvider/SqlSugarCoreProvider.cs

4
Src/Asp.Net/SqlSugar/Abstract/SugarProvider/SqlSugarCoreProvider.cs

@ -20,6 +20,10 @@ namespace SqlSugar
{
SqlSugarClient result = null;
var key = _configs.GetHashCode().ToString();
if (Task.CurrentId != null)
{
key= $"{key}Task";
}
StackTrace st = new StackTrace(true);
var methods = st.GetFrames();
var isAsync = UtilMethods.IsAnyAsyncMethod(methods);

Loading…
Cancel
Save