Show / Hide Table of Contents

Class AddressTableInfo

Table 'address': Contact and Person addresses

Inheritance
Object
TableInfo
AddressTableInfo
Implements
ICloneable
Inherited Members
TableInfo.ToString()
TableInfo.RegisterFields(FieldInfo[])
TableInfo.FieldInfoFromSoField(SoField)
TableInfo.Clone()
TableInfo.IsSameTable(TableInfo)
TableInfo.FindField(String)
TableInfo.ProtAll
TableInfo.HashCheckFields
TableInfo.TableName
TableInfo.DbName
TableInfo.IsDictionaryTable
TableInfo.All
TableInfo.Item[String]
TableInfo.PrimaryKeyField
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("address")]
public class AddressTableInfo : TableInfo, ICloneable
Remarks

An instance of this class represents one instance of this table in an SQL statement. In most cases each table appears only once in a SELECT, but in cases where you need to self-join, or there are multiple occurrences for other reasons (typically additional restrictions in the joins), then you will need multiple instances.
Instances of this class are created by calling .

Fields

DictionaryTableName

Conceptual name of table Address in the database dictionary: address

Declaration
public const string DictionaryTableName = "address"
Field Value
Type Description
String

Properties

Address1

Field 'address1' in table 'address': Dictionary type String[80], .NET type: String

Address line 1

Declaration
public StringFieldInfo Address1 { get; }
Property Value
Type Description
StringFieldInfo

Address2

Field 'address2' in table 'address': Dictionary type String[80], .NET type: String

Address line 2

Declaration
public StringFieldInfo Address2 { get; }
Property Value
Type Description
StringFieldInfo

Address3

Field 'address3' in table 'address': Dictionary type String[80], .NET type: String

Address line 3

Declaration
public StringFieldInfo Address3 { get; }
Property Value
Type Description
StringFieldInfo

AddressId

Field 'address_id' in table 'address': Dictionary type PK, .NET type: Int32

Primary key

Declaration
public Int32FieldInfo AddressId { get; }
Property Value
Type Description
Int32FieldInfo

AtypeIdx

Field 'atype_idx' in table 'address': Dictionary type Enum, .NET type: AddressType

Bit mask, combines address type (EAddressType) and owner type (EOwnerType)

Declaration
public AddressTypeFieldInfo AtypeIdx { get; }
Property Value
Type Description
AddressTypeFieldInfo

City

Field 'city' in table 'address': Dictionary type String[80], .NET type: String

City corresponding to zip code

Declaration
public StringFieldInfo City { get; }
Property Value
Type Description
StringFieldInfo

County

Field 'county' in table 'address': Dictionary type String[30], .NET type: String

County (not country)

Declaration
public StringFieldInfo County { get; }
Property Value
Type Description
StringFieldInfo

Definition

Definition of the table as described in the deployed runtime dictionary

Declaration
public override SoTable Definition { get; }
Property Value
Type Description
SoTable
Overrides
TableInfo.Definition

DictionaryTableNumber

Table number for table Address in the database dictionary; potentially changes between databases, but always the same over the lifetime of any single database

Declaration
public int DictionaryTableNumber { get; }
Property Value
Type Description
Int32

OwnerId

Field 'owner_id' in table 'address': Dictionary type Id, .NET type: Int32

Record id of owner: Contact or Person

Declaration
public Int32FieldInfo OwnerId { get; }
Property Value
Type Description
Int32FieldInfo

Registered

Field 'registered' in table 'address': Dictionary type UtcDateTime, .NET type: DateTime

Registered when

Declaration
public DateTimeFieldInfo Registered { get; }
Property Value
Type Description
DateTimeFieldInfo

RegisteredAssociateId

Field 'registered_associate_id' in table 'address': Dictionary type FK, .NET type: Int32

Registered by whom

Declaration
public Int32FieldInfo RegisteredAssociateId { get; }
Property Value
Type Description
Int32FieldInfo

RegisteredAssociateId_InnerJoin_Associate

Generated join from the foreign key RegisteredAssociateId in this table, to its target table AssociateTableInfo.

Declaration
public TargetedInnerJoin<AssociateTableInfo> RegisteredAssociateId_InnerJoin_Associate { get; }
Property Value
Type Description
TargetedInnerJoin<AssociateTableInfo>

RuntimeDefinition

Definition of the table as described in the deployed runtime dictionary

Declaration
[Obsolete("Use instance property Definition or static member DictionaryTableNumber", true)]
public static SoTable RuntimeDefinition { get; }
Property Value
Type Description
SoTable

State

Field 'state' in table 'address': Dictionary type String[6], .NET type: String

State

Declaration
public StringFieldInfo State { get; }
Property Value
Type Description
StringFieldInfo

Updated

Field 'updated' in table 'address': Dictionary type UtcDateTime, .NET type: DateTime

Last updated when

Declaration
public DateTimeFieldInfo Updated { get; }
Property Value
Type Description
DateTimeFieldInfo

UpdatedAssociateId

Field 'updated_associate_id' in table 'address': Dictionary type FK, .NET type: Int32

Last updated by whom

Declaration
public Int32FieldInfo UpdatedAssociateId { get; }
Property Value
Type Description
Int32FieldInfo

UpdatedAssociateId_InnerJoin_Associate

Generated join from the foreign key UpdatedAssociateId in this table, to its target table AssociateTableInfo.

Declaration
public TargetedInnerJoin<AssociateTableInfo> UpdatedAssociateId_InnerJoin_Associate { get; }
Property Value
Type Description
TargetedInnerJoin<AssociateTableInfo>

UpdatedCount

Field 'updatedCount' in table 'address': Dictionary type UShort, .NET type: Int16

Number of updates made to this record

Declaration
public UInt16FieldInfo UpdatedCount { get; }
Property Value
Type Description
UInt16FieldInfo

ValidFrom

Field 'validFrom' in table 'address': Dictionary type DateTime, .NET type: DateTime

Valid from date for this record

Declaration
public DateTimeFieldInfo ValidFrom { get; }
Property Value
Type Description
DateTimeFieldInfo

ValidTo

Field 'validTo' in table 'address': Dictionary type DateTime, .NET type: DateTime

Valid to date for this record

Declaration
public DateTimeFieldInfo ValidTo { get; }
Property Value
Type Description
DateTimeFieldInfo

Wgs84Latitude

Field 'wgs84latitude' in table 'address': Dictionary type Double, .NET type: Double

Latitude (that's north/south), decimal degrees, relative to WGS 84 ellipsoid. SuperOffice ASA is at 59.91892. This value needs no further grid reference or other qualifying information.

Declaration
public DoubleFieldInfo Wgs84Latitude { get; }
Property Value
Type Description
DoubleFieldInfo

Wgs84Longitude

Field 'wgs84longitude' in table 'address': Dictionary type Double, .NET type: Double

Longitude (that's East/west), decimal degrees, relative to WGS 84 ellipsoid. SuperOffice ASA is at 10.73159. This value needs no further grid reference or other qualifying information.

Declaration
public DoubleFieldInfo Wgs84Longitude { get; }
Property Value
Type Description
DoubleFieldInfo

Zipcode

Field 'zipcode' in table 'address': Dictionary type String[12], .NET type: String

Zip code, alphanumeric

Declaration
public StringFieldInfo Zipcode { get; }
Property Value
Type Description
StringFieldInfo

Methods

IdxOwnerId(Int32)

Shortcut method for looking up using the database index OwnerId, which spans the following fields:

FieldDescription
OwnerIdRecord id of owner: Contact or Person
Declaration
public Restriction IdxOwnerId(int ownerId)
Parameters
Type Name Description
Int32 ownerId
Returns
Type Description
Restriction

Implements

System.ICloneable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top