fix: 修复删除脚本错误

#Comment
comment commit:54997a53ef8c05b822cb3e556349d75be0067338
This commit is contained in:
Argo Zhang (Win) 2019-08-11 12:09:05 +08:00
parent 8e3f67e746
commit 0e7ad0a282
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ namespace Bootstrap.DataAccess
try try
{ {
db.BeginTransaction(); db.BeginTransaction();
db.Execute($"delete from NavigationRole where NavigationID in @value", new { value }); db.Execute($"delete from NavigationRole where NavigationID in (@value)", new { value });
db.Delete<Menu>($"where ID in @value", new { value }); db.Delete<Menu>($"where ID in (@value)", new { value });
db.CompleteTransaction(); db.CompleteTransaction();
ret = true; ret = true;
} }