public static Address Load(Int32 addressId, bool useCache)
        {
            if (addressId == 0)
            {
                return(null);
            }
            Address address = null;
            string  key     = "Address_" + addressId.ToString();

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

            if (address.Load(addressId))
            {
                return(address.Delete());
            }
            return(false);
        }