mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 增加 .Net Framework 4.0 的支持,出于环境考虑 .Net Framework 4.0 不支持异步方法;
- 增加 IFreeSql.Insert<T>(IEnumerable<T1> source) 方法;
This commit is contained in:
@ -143,7 +143,8 @@ namespace FreeSql.SqlServer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if net40
|
||||
#else
|
||||
async public Task OnGetAsync(Object<DbConnection> obj)
|
||||
{
|
||||
|
||||
@ -172,7 +173,7 @@ namespace FreeSql.SqlServer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
public void OnGetTimeout()
|
||||
{
|
||||
|
||||
@ -218,6 +219,8 @@ namespace FreeSql.SqlServer
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#if net40
|
||||
#else
|
||||
async public static Task<bool> PingAsync(this DbConnection that, bool isThrow = false)
|
||||
{
|
||||
try
|
||||
@ -232,5 +235,6 @@ namespace FreeSql.SqlServer
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user