mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Update Core
This commit is contained in:
@@ -28,7 +28,7 @@ namespace SqlSugar
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Check.Exception(true, ErrorMessage.ConnnectionOpen, ex.Message);
|
||||
Check.Exception(true, "MySql.Data.dll Nuget更新到 6.10.3-rc 版本的(Core 2.0只支持当前版本), 在检查连接字符串是否正确,{0}", ex.Message);
|
||||
}
|
||||
}
|
||||
return base._DbConnection;
|
||||
@@ -38,7 +38,21 @@ namespace SqlSugar
|
||||
base._DbConnection = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override void CheckConnection()
|
||||
{
|
||||
if (this.Connection.State != ConnectionState.Open)
|
||||
{
|
||||
try
|
||||
{
|
||||
this.Connection.Open();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Check.Exception(true, "MySql.Data.dll Nuget更新到 6.10.3-rc 版本的(Core 2.0只支持当前版本), 在检查连接字符串是否正确,{0}", ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void BeginTran(string transactionName)
|
||||
{
|
||||
base.BeginTran();
|
||||
|
Reference in New Issue
Block a user