Class CustomerAddress

CustomerAddress

Inheritance
System.Object
CustomerAddress
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Customers
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public class CustomerAddress : AddressEntity

Constructors

CustomerAddress()

Declaration
protected CustomerAddress()

Fields

EqualityUsingProperties

Declaration
public static IEnumerable<string> EqualityUsingProperties
Field Value
Type Description
System.Collections.Generic.IEnumerable<System.String>

Properties

AddressId

Gets or sets the address id.

Declaration
public PrimaryKeyId AddressId { get; set; }
Property Value
Type Description
PrimaryKeyId

The address id.

AddressType

Gets or sets the type of the customer address.

Declaration
public CustomerAddressTypeEnum AddressType { get; set; }
Property Value
Type Description
CustomerAddressTypeEnum

The type of the customer address.

Methods

CopyCustomerAddressToOrderAddress(AddressEntity, OrderAddress)

Copies the fields from an instance of a CustomerAddress object to an instance of an OrderAddress object.

Declaration
public static void CopyCustomerAddressToOrderAddress(AddressEntity customerAddress, OrderAddress orderAddress)
Parameters
Type Name Description
AddressEntity customerAddress
OrderAddress orderAddress

CreateForApplication(Guid)

Creates the customer address for application.

Declaration
public static CustomerAddress CreateForApplication(Guid applicationId)
Parameters
Type Name Description
System.Guid applicationId

The application id.

Returns
Type Description
CustomerAddress

CreateInstance()

Creates the instance.

Declaration
public static CustomerAddress CreateInstance()
Returns
Type Description
CustomerAddress

Delete()

Deletes this instance.

Declaration
public void Delete()

Delete(PrimaryKeyId)

Deletes the customer address.

Declaration
public static void Delete(PrimaryKeyId addressId)
Parameters
Type Name Description
PrimaryKeyId addressId

The address id.

Equals(Object)

Determines whether the specified System.Object is equal to the current System.Object.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The System.Object to compare with the current System.Object.

Returns
Type Description
System.Boolean

true if the specified System.Object is not null and equal to the current System.Object; otherwise, false.

Overrides
System.Object.Equals(System.Object)

GetAddressString()

Gets the address string.

Declaration
public string GetAddressString()
Returns
Type Description
System.String

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides
System.Object.GetHashCode()