using Bootstrap.Security;
using Bootstrap.Security.DataAccess;
using PetaPoco;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Bootstrap.DataAccess
{
///
///
///
[TableName("Navigations")]
public class Menu : BootstrapMenu
{
///
/// 删除菜单信息
///
///
public virtual bool Delete(IEnumerable value)
{
if (!value.Any()) return true;
var ret = false;
var db = DbManager.Create();
try
{
var ids = string.Join(",", value);
db.BeginTransaction();
db.Execute($"delete from NavigationRole where NavigationID in ({ids})");
db.Delete