update .net core project

This commit is contained in:
sunkaixuan
2022-09-29 12:01:49 +08:00
parent 153f7180be
commit b3f2773332
2 changed files with 8 additions and 0 deletions

View File

@@ -584,6 +584,10 @@ namespace SqlSugar
{ {
return false; return false;
} }
if (properyTypeName?.ToLower() == "blob" && dataType?.ToLower() == "byte[]")
{
return false;
}
if (properyTypeName == null || dataType == null) if (properyTypeName == null || dataType == null)
{ {
return properyTypeName != dataType; return properyTypeName != dataType;

View File

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