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