public ModelInvokeResult <CallObjectPK> Update(string strId, CallObject callObject) { ModelInvokeResult <CallObjectPK> result = new ModelInvokeResult <CallObjectPK> { Success = true }; try { List <IBatisNetBatchStatement> statements = new List <IBatisNetBatchStatement>(); /***********************begin 自定义代码*******************/ int _Id = Convert.ToInt32(strId); callObject.OperatedBy = NormalSession.UserId.ToGuid(); callObject.OperatedOn = DateTime.Now; /***********************end 自定义代码*********************/ statements.Add(new IBatisNetBatchStatement { StatementName = callObject.GetUpdateMethodName(), ParameterObject = callObject.ToStringObjectDictionary(false), Type = SqlExecuteType.UPDATE }); /***********************begin 自定义代码*******************/ /***********************此处添加自定义代码*****************/ /***********************end 自定义代码*********************/ BuilderFactory.DefaultBulder().ExecuteNativeSqlNoneQuery(statements); result.instance = new CallObjectPK { Id = _Id }; } catch (Exception ex) { result.Success = false; result.ErrorMessage = ex.Message; } return(result); }