//[FlushCache(typeof(ReasonCodeDA), "GetAllReasonCode")] public virtual int UpdateReasonCode(BizEntity.Common.ReasonCodeEntity query) { DataCommand cmd = DataCommandManager.GetDataCommand("UpdateReasonCode"); cmd.SetParameterValue <ReasonCodeEntity>(query); return(cmd.ExecuteNonQuery()); }
//[FlushCache(typeof(ReasonCodeDA), "GetAllReasonCode")] public virtual ReasonCodeEntity InsertReasonCode(BizEntity.Common.ReasonCodeEntity entity) { DataCommand cmd = DataCommandManager.GetDataCommand("InsertReasonCode"); cmd.SetParameterValue <ReasonCodeEntity>(entity); cmd.ExecuteNonQuery(); object result = cmd.GetParameterValue("@SysNo"); entity.SysNo = Convert.ToInt32(result); return(entity); }