Browse Source

Update .net core project

SqlSugar5
sunkaixuan 2 years ago
parent
commit
cc2d595bc5
  1. 3
      Src/Asp.NetCore2/SqlSugar/Abstract/SugarProvider/SqlSugarAccessory.cs
  2. 1
      Src/Asp.NetCore2/SqlSugar/Enum/DbType.cs

3
Src/Asp.NetCore2/SqlSugar/Abstract/SugarProvider/SqlSugarAccessory.cs

@ -404,6 +404,9 @@ namespace SqlSugar
Check.Exception(InstanceFactory.CustomNamespace.IsNullOrEmpty(), "DbType.Custom: InstanceFactory.CustomNamespace is not null ");
Check.Exception(InstanceFactory.CustomDllName.IsNullOrEmpty(), "DbType.Custom: InstanceFactory.CustomDllName is not null ");
break;
case DbType.QuestDB:
Check.Exception(SugarCompatible.IsFramework, "QuestDB only support .net core");
break;
default:
throw new Exception("ConnectionConfig.DbType is null");
}

1
Src/Asp.NetCore2/SqlSugar/Enum/DbType.cs

@ -18,6 +18,7 @@ namespace SqlSugar
MySqlConnector,
Access,
OpenGauss,
QuestDB,
Custom =900
}
}

Loading…
Cancel
Save