public ModelInvokeResult <Ewallet_Recharge_RecordPK> Delete(string strId)
        {
            ModelInvokeResult <Ewallet_Recharge_RecordPK> result = new ModelInvokeResult <Ewallet_Recharge_RecordPK> {
                Success = true
            };

            try
            {
                List <IBatisNetBatchStatement> statements = new List <IBatisNetBatchStatement>();
                int _Id = Convert.ToInt32(strId);
                Ewallet_Recharge_RecordPK pk = new Ewallet_Recharge_RecordPK {
                    Id = _Id
                };
                DeleteCascade(statements, pk);
                statements.Add(new IBatisNetBatchStatement {
                    StatementName = new Ewallet_Recharge_Record().GetDeleteMethodName(), ParameterObject = pk, Type = SqlExecuteType.DELETE
                });
                /***********************begin 自定义代码*******************/
                /***********************此处添加自定义代码*****************/
                /***********************end 自定义代码*********************/
                BuilderFactory.DefaultBulder().ExecuteNativeSqlNoneQuery(statements);
                result.instance = new Ewallet_Recharge_RecordPK {
                    Id = _Id
                };
            }
            catch (Exception ex)
            {
                result.Success      = false;
                result.ErrorMessage = ex.Message;
            }
            return(result);
        }
        public InvokeResult DeleteSelected(string strIds)
        {
            InvokeResult result = new InvokeResult {
                Success = true
            };

            try
            {
                List <IBatisNetBatchStatement> statements = new List <IBatisNetBatchStatement>();
                string[] arrIds = strIds.Split("|".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                if (arrIds.Length == 0)
                {
                    result.Success   = false;
                    result.ErrorCode = 59996;
                    return(result);
                }
                string statementName = new Ewallet_Recharge_Record().GetDeleteMethodName();
                foreach (string strId in arrIds)
                {
                    Ewallet_Recharge_RecordPK pk = new Ewallet_Recharge_RecordPK {
                        Id = Convert.ToInt32(strId)
                    };
                    DeleteCascade(statements, pk);
                    statements.Add(new IBatisNetBatchStatement {
                        StatementName = statementName, ParameterObject = pk, Type = SqlExecuteType.DELETE
                    });
                }
                BuilderFactory.DefaultBulder().ExecuteNativeSqlNoneQuery(statements);
            }
            catch (Exception ex)
            {
                result.Success      = false;
                result.ErrorMessage = ex.Message;
            }
            return(result);
        }
 private void DeleteCascade(List <IBatisNetBatchStatement> statements, Ewallet_Recharge_RecordPK pk)
 {
     //此处增加级联删除代码
 }