修改BUG:用户表删除操作缺少事务

This commit is contained in:
Argo-MacBookPro 2018-10-29 10:16:01 +08:00
parent fbf02552f1
commit aeaf7f79a6
1 changed files with 1 additions and 1 deletions

View File

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