mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 修复 Ado.Net Crud 扩展方法事务的友好异常提示;
This commit is contained in:
@ -13,7 +13,7 @@ namespace FreeSql
|
||||
static object _dicCurdLock = new object();
|
||||
static IFreeSql GetCrud(IDbConnection dbconn)
|
||||
{
|
||||
if (dbconn == null) throw new ArgumentNullException($"{nameof(dbconn)} 不能为 null"); ;
|
||||
if (dbconn == null) throw new ArgumentNullException($"{nameof(dbconn)} 不能为 null");
|
||||
Type dbconType = dbconn.GetType();
|
||||
var connType = dbconType.UnderlyingSystemType;
|
||||
if (_dicCurd.TryGetValue(connType, out var fsql)) return fsql;
|
||||
|
Reference in New Issue
Block a user