- 完善 DbUpdateVersionException IsVersion 行版本异常;

This commit is contained in:
28810
2020-08-16 03:32:06 +08:00
parent 4ba6e087e1
commit f0b09f468c
15 changed files with 101 additions and 30 deletions

View File

@ -52,7 +52,7 @@ namespace FreeSql.MySql.Curd
try
{
ret = _orm.Ado.Query<T1>(_table.TypeLazy ?? _table.Type, _connection, _transaction, CommandType.Text, sql, dbParms);
ValidateVersionAndThrow(ret.Count);
ValidateVersionAndThrow(ret.Count, sql, dbParms);
}
catch (Exception ex)
{
@ -133,7 +133,7 @@ namespace FreeSql.MySql.Curd
try
{
ret = await _orm.Ado.QueryAsync<T1>(_table.TypeLazy ?? _table.Type, _connection, _transaction, CommandType.Text, sql, dbParms);
ValidateVersionAndThrow(ret.Count);
ValidateVersionAndThrow(ret.Count, sql, dbParms);
}
catch (Exception ex)
{