- 修改 SqlServerProvider 版本号获取逻辑 bug;

This commit is contained in:
28810
2020-08-08 16:30:44 +08:00
parent b3ec6cdf8d
commit aee82f9caa
3 changed files with 10 additions and 19 deletions

View File

@ -42,15 +42,15 @@ namespace FreeSql.SqlServer
this.CodeFirst = new SqlServerCodeFirst(this, this.InternalCommonUtils, this.InternalCommonExpression);
if (this.Ado.MasterPool != null)
using (var conn = this.Ado.MasterPool.Get())
try
{
try
using (var conn = this.Ado.MasterPool.Get())
{
(this.InternalCommonUtils as SqlServerUtils).ServerVersion = int.Parse(conn.Value.ServerVersion.Split('.')[0]);
}
catch
{
}
}
catch
{
}
}