/// <summary> /// 添加永久删除按钮 /// 根据增删查改的控制器自动生成,各个参数如不指定则使用默认值 /// </summary> /// <typeparam name="TCrudController">控制器类型</typeparam> public static void AddDeleteForeverActionFor <TCrudController>( this AjaxTableActionColumn column, string name = null, string buttonClass = null, string iconClass = null, string titleTemplate = null, string urlTemplate = null, string primaryKey = null, object dialogParameters = null) where TCrudController : class, ICrudController, new() { var app = new TCrudController(); column.AddDeleteForeverAction(app.EntityTypeName, app.BatchUrl + "?action=delete_forever", name, buttonClass, iconClass, titleTemplate, urlTemplate, primaryKey, dialogParameters); }