private void DeleteCascade(List <IBatisNetBatchStatement> statements, TreePK pk) { //此处增加级联删除代码 TreeItem item = new TreeItem { TreeId = pk.TreeId }; statements.Add(new IBatisNetBatchStatement { StatementName = item.GetDeleteMethodName(), ParameterObject = item.ToStringObjectDictionary(false), Type = SqlExecuteType.DELETE }); }