Show / Hide Table of Contents

Class PersonInterestTableInfo

Table 'personinterest': Note: If you add or remove rows in this table, you will need to update the interestCount field in the person table accordingly. This field should always reflect the number of interest records a person has, to enable the correct setting of the interest indicator on the tab in the person dialog. Replication note: The combination of person_id and pinterest_idx is unique. If a duplicate is made on a replicated database, the system will replace the record in the target database with the one derived from the source database during replication. Therefore, do not assume that a record in this table will retain its ID indefinitely, even if the person keeps the interest.

Inheritance
Object
TableInfo
PersonInterestTableInfo
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("personinterest")]
public class PersonInterestTableInfo : 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 PersonInterest in the database dictionary: personinterest

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

Properties

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 PersonInterest 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

EndDate

Field 'endDate' in table 'personinterest': Dictionary type DateTime, .NET type: DateTime

End date for this interest - no GUI

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

Flags

Field 'flags' in table 'personinterest': Dictionary type UInt, .NET type: UInt32

Spare flag field

Declaration
public FieldInfo Flags { get; }
Property Value
Type Description
FieldInfo

PersonId

Field 'person_id' in table 'personinterest': Dictionary type FK, .NET type: Int32

Owning person

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

PersonId_InnerJoin_Person

Generated join from the foreign key PersonId in this table, to its target table PersonTableInfo.

Declaration
public TargetedInnerJoin<PersonTableInfo> PersonId_InnerJoin_Person { get; }
Property Value
Type Description
TargetedInnerJoin<PersonTableInfo>

PersoninterestId

Field 'personinterest_id' in table 'personinterest': Dictionary type PK, .NET type: Int32

Primary key

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

PinterestIdx

Field 'pinterest_idx' in table 'personinterest': Dictionary type FK, .NET type: Int32

Person interest link

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

PinterestIdx_InnerJoin_PersInt

Generated join from the foreign key PinterestIdx in this table, to its target table PersIntTableInfo.

Declaration
public TargetedInnerJoin<PersIntTableInfo> PinterestIdx_InnerJoin_PersInt { get; }
Property Value
Type Description
TargetedInnerJoin<PersIntTableInfo>

Registered

Field 'registered' in table 'personinterest': 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 'personinterest': 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

StartDate

Field 'startDate' in table 'personinterest': Dictionary type DateTime, .NET type: DateTime

Start date for this interest - no GUI

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

Updated

Field 'updated' in table 'personinterest': 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 'personinterest': 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 'personinterest': Dictionary type UShort, .NET type: Int16

Number of updates made to this record

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

Methods

IdxPersonId(Int32)

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

FieldDescription
PersonIdOwning person
Declaration
public Restriction IdxPersonId(int personId)
Parameters
Type Name Description
Int32 personId
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