예제 #1
0
        //[FlushCache(typeof(ReasonCodeDA), "GetAllReasonCode")]
        public virtual int UpdateReasonCode(BizEntity.Common.ReasonCodeEntity query)
        {
            DataCommand cmd = DataCommandManager.GetDataCommand("UpdateReasonCode");

            cmd.SetParameterValue <ReasonCodeEntity>(query);
            return(cmd.ExecuteNonQuery());
        }
예제 #2
0
        //[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);
        }