修改BUG:用户表删除操作缺少事务
This commit is contained in:
parent
fbf02552f1
commit
aeaf7f79a6
|
@ -29,7 +29,7 @@ namespace Bootstrap.DataAccess.SQLite
|
|||
{
|
||||
using (DbCommand cmd = DbAccessManager.DBAccess.CreateCommand(CommandType.Text, $"Delete from UserRole where UserID in ({ids})"))
|
||||
{
|
||||
DbAccessManager.DBAccess.ExecuteNonQuery(cmd);
|
||||
DbAccessManager.DBAccess.ExecuteNonQuery(cmd, transaction);
|
||||
|
||||
cmd.CommandText = $"delete from UserGroup where UserID in ({ids})";
|
||||
DbAccessManager.DBAccess.ExecuteNonQuery(cmd, transaction);
|
||||
|
|
Loading…
Reference in New Issue