public ModelInvokeResult <ServiceAccountPK> Nullify(string strAccountCode) { ModelInvokeResult <ServiceAccountPK> result = new ModelInvokeResult <ServiceAccountPK> { Success = true }; try { List <IBatisNetBatchStatement> statements = new List <IBatisNetBatchStatement>(); string _AccountCode = strAccountCode; ServiceAccount serviceAccount = new ServiceAccount { AccountCode = _AccountCode, Status = 0 }; statements.Add(new IBatisNetBatchStatement { StatementName = serviceAccount.GetUpdateMethodName(), ParameterObject = serviceAccount.ToStringObjectDictionary(false), Type = SqlExecuteType.UPDATE }); /***********************begin 自定义代码*******************/ /***********************此处添加自定义代码*****************/ /***********************end 自定义代码*********************/ BuilderFactory.DefaultBulder().ExecuteNativeSqlNoneQuery(statements); result.instance = new ServiceAccountPK { AccountCode = _AccountCode }; } catch (Exception ex) { result.Success = false; result.ErrorMessage = ex.Message; } return(result); }