mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 修改 SqlServerProvider 版本号获取逻辑 bug;
This commit is contained in:
@ -41,15 +41,15 @@ namespace FreeSql.Odbc.SqlServer
|
||||
this.CodeFirst = new OdbcSqlServerCodeFirst(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 OdbcSqlServerUtils).ServerVersion = int.Parse(conn.Value.ServerVersion.Split('.')[0]);
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user