- 修复 Ado.Net Crud 扩展方法事务的友好异常提示;

This commit is contained in:
28810
2020-09-05 18:45:36 +08:00
parent 44cff19ed4
commit 59ecfdf288
12 changed files with 145 additions and 15 deletions

View File

@ -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;