Table of Contents

Class AccountInfo

Namespace
CMS.ContactManagement
Assembly
CMS.ContactManagement.dll

AccountInfo data container class.

[InfoCache(InfoCacheBy.ID)]
public class AccountInfo : AbstractInfo<AccountInfo, IAccountInfoProvider>, IExtensible, IInfo, IAdvancedDataContainer, ICMSObject, IHierarchicalDataContainer, IDataContainer, ISimpleDataContainer, IVirtualHierarchicalObject, IHierarchicalObject, INameIndexable, IMacroObject, IInfoWithId, IInfoWithGuid
Inheritance
object
AccountInfo
Implements
Inherited Members
Extension Methods

Constructors

AccountInfo()

Constructor - Creates an empty AccountInfo object.

public AccountInfo()

AccountInfo(DataRow)

Constructor - Creates a new AccountInfo object from the given DataRow.

public AccountInfo(DataRow dr)

Parameters

dr DataRow

DataRow with the object data

Fields

OBJECT_TYPE

Object type

public const string OBJECT_TYPE = "om.account"

Field Value

string

TYPEINFO

Type information.

public static ObjectTypeInfo TYPEINFO

Field Value

ObjectTypeInfo

Properties

AccountAddress1

Gets or sets the first line of the account's address.

public virtual string AccountAddress1 { get; set; }

Property Value

string

AccountAddress2

Gets or sets the second line of the account's address.

public virtual string AccountAddress2 { get; set; }

Property Value

string

AccountCity

Gets or sets the account's city.

public virtual string AccountCity { get; set; }

Property Value

string

AccountCountryID

Gets or sets the account's country ID.

public virtual int AccountCountryID { get; set; }

Property Value

int

AccountCreated

Gets or sets the date and time when the account was created.

public virtual DateTime AccountCreated { get; set; }

Property Value

DateTime

AccountEmail

Gets or sets the account's email address.

public virtual string AccountEmail { get; set; }

Property Value

string

AccountFax

Gets or sets the account's fax number.

public virtual string AccountFax { get; set; }

Property Value

string

AccountGUID

Gets or sets the account's GUID.

public virtual Guid AccountGUID { get; set; }

Property Value

Guid

AccountID

Gets or sets the account's ID.

public virtual int AccountID { get; set; }

Property Value

int

AccountLastModified

Gets or sets the date and time when the account was last modified.

public virtual DateTime AccountLastModified { get; set; }

Property Value

DateTime

AccountName

Gets or sets the account's name.

public virtual string AccountName { get; set; }

Property Value

string

AccountNotes

Gets or sets the notes for this account.

public virtual string AccountNotes { get; set; }

Property Value

string

AccountOwnerUserID

Gets or sets the user that owns this account.

public virtual int AccountOwnerUserID { get; set; }

Property Value

int

AccountPhone

Gets or sets the account's phone number.

public virtual string AccountPhone { get; set; }

Property Value

string

AccountPrimaryContactID

Gets or sets the account's primary contact ID.

public virtual int AccountPrimaryContactID { get; set; }

Property Value

int

AccountSecondaryContactID

Gets or sets the account's secondary contact ID.

public virtual int AccountSecondaryContactID { get; set; }

Property Value

int

AccountStateID

Gets or sets the account's state ID.

public virtual int AccountStateID { get; set; }

Property Value

int

AccountStatusID

Gets or sets the account's status ID.

public virtual int AccountStatusID { get; set; }

Property Value

int

AccountSubsidiaryOfID

Gets or sets the account that is a parent account to this one.

public virtual int AccountSubsidiaryOfID { get; set; }

Property Value

int

AccountWebSite

Gets or sets the account's web site URL.

public virtual string AccountWebSite { get; set; }

Property Value

string

AccountZIP

Gets or sets the account's postal code.

public virtual string AccountZIP { get; set; }

Property Value

string

Subsidiaries

Collection of subsidiaries belonging to the account.

public virtual IInfoObjectCollection Subsidiaries { get; }

Property Value

IInfoObjectCollection

Methods

DeleteObject()

Deletes the object using appropriate provider.

protected override void DeleteObject()

InsertAsCloneInternal(CloneSettings, CloneResult, BaseInfo)

Inserts cloned object to DB.

protected override void InsertAsCloneInternal(CloneSettings settings, CloneResult result, BaseInfo originalObject)

Parameters

settings CloneSettings

Cloning settings

result CloneResult

Cloning result

originalObject BaseInfo

Original source BaseInfo (object being cloned)

SetObject()

Updates the object using appropriate provider.

protected override void SetObject()