public static ShipMethod Load(Int32 shipMethodId, bool useCache)
        {
            if (shipMethodId == 0)
            {
                return(null);
            }
            ShipMethod shipMethod = null;
            string     key        = "ShipMethod_" + shipMethodId.ToString();

            if (useCache)
            {
                shipMethod = ContextCache.GetObject(key) as ShipMethod;
                if (shipMethod != null)
                {
                    return(shipMethod);
                }
            }
            shipMethod = new ShipMethod();
            if (shipMethod.Load(shipMethodId))
            {
                if (useCache)
                {
                    ContextCache.SetObject(key, shipMethod);
                }
                return(shipMethod);
            }
            return(null);
        }
        public static bool Delete(Int32 shipMethodId)
        {
            ShipMethod shipMethod = new ShipMethod();

            if (shipMethod.Load(shipMethodId))
            {
                return(shipMethod.Delete());
            }
            return(false);
        }