예제 #1
0
        public virtual void Update(BizEntity.Customer.ShipTypeSMS entity)
        {
            DataCommand cmd = DataCommandManager.GetDataCommand("UpdateShipTypeSMS");

            cmd.SetParameterValue <ShipTypeSMS>(entity);
            cmd.ExecuteNonQuery();
        }
예제 #2
0
        public virtual BizEntity.Customer.ShipTypeSMS Create(BizEntity.Customer.ShipTypeSMS entity)
        {
            DataCommand cmd = DataCommandManager.GetDataCommand("CreateShipTypeSMS");

            cmd.SetParameterValue <ShipTypeSMS>(entity);
            cmd.ExecuteNonQuery();
            entity.SysNo = Convert.ToInt32(cmd.GetParameterValue("@SysNo"));
            return(entity);
        }