Show / Hide Table of Contents

Class PriceListTableInfo

Table 'PriceList': List of prices, cached from an ERP system

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

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

Properties

CurrencyId

Field 'CurrencyId' in table 'PriceList': Dictionary type FK, .NET type: Int32

What is the currency for this pricelist

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

CurrencyId_InnerJoin_Currency

Generated join from the foreign key CurrencyId in this table, to its target table CurrencyTableInfo.

Declaration
public TargetedInnerJoin<CurrencyTableInfo> CurrencyId_InnerJoin_Currency { get; }
Property Value
Type Description
TargetedInnerJoin<CurrencyTableInfo>

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

Description

Field 'Description' in table 'PriceList': Dictionary type String[255], .NET type: String

Description of this pricelist , will be used as tool-tip in the user interface.

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

DictionaryTableNumber

Table number for table PriceList 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

ERPPriceListKey

Field 'ERPPriceListKey' in table 'PriceList': Dictionary type String[255], .NET type: String

The key that uniquely identifies this pricelist in the ERP system

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

IsActive

Field 'IsActive' in table 'PriceList': Dictionary type Bool, .NET type: Int16

Is the list active (as opposed to being worked on, suddenly canceled, etc.

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

IsERPCopy

Field 'IsERPCopy' in table 'PriceList': Dictionary type Bool, .NET type: Int16

If true, then this pricelist is a cache/copy and cannot be edited by users in CRM

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

LeftOuterJoin_Product_PriceListId

Generated left outer join from the primary key PriceListId on this table, to Product.PriceListId.

Declaration
public TargetedLeftOuterJoin<ProductTableInfo> LeftOuterJoin_Product_PriceListId { get; }
Property Value
Type Description
TargetedLeftOuterJoin<ProductTableInfo>

Name

Field 'Name' in table 'PriceList': Dictionary type String[255], .NET type: String

Name of this pricelist to use in the user interface.

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

PriceListId

Field 'pricelist_id' in table 'PriceList': Dictionary type PK, .NET type: Int32

Primary key

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

QuoteConnectionId

Field 'QuoteConnectionId' in table 'PriceList': Dictionary type FK, .NET type: Int32

(Reserved for future use) The connection to the ERP system used for this pricelist

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

QuoteConnectionId_InnerJoin_QuoteConnection

Generated join from the foreign key QuoteConnectionId in this table, to its target table QuoteConnectionTableInfo.

Declaration
public TargetedInnerJoin<QuoteConnectionTableInfo> QuoteConnectionId_InnerJoin_QuoteConnection { get; }
Property Value
Type Description
TargetedInnerJoin<QuoteConnectionTableInfo>

Registered

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

Updated

Field 'updated' in table 'PriceList': 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 'PriceList': 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 'PriceList': 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 'PriceList': Dictionary type DateTime, .NET type: DateTime

The date (inclusive) the pricelist start to be valid. This can be DateTime.MinValue to signal that it doesn't have a specific start date.

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

ValidTo

Field 'ValidTo' in table 'PriceList': Dictionary type DateTime, .NET type: DateTime

The date (inclusive) the pricelist ends to be valid. This can be DateTime.MaxValue to signal that it doesn't have a specific end date.

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

Methods

IdxValidFrom(DateTime)

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

FieldDescription
ValidFromThe date (inclusive) the pricelist start to be valid. This can be DateTime.MinValue to signal that it doesn't have a specific start date.
Declaration
public Restriction IdxValidFrom(DateTime validFrom)
Parameters
Type Name Description
DateTime validFrom
Returns
Type Description
Restriction

IdxValidFromValidTo(DateTime, DateTime)

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

FieldDescription
ValidFromThe date (inclusive) the pricelist start to be valid. This can be DateTime.MinValue to signal that it doesn't have a specific start date.
ValidToThe date (inclusive) the pricelist ends to be valid. This can be DateTime.MaxValue to signal that it doesn't have a specific end date.
Declaration
public Restriction IdxValidFromValidTo(DateTime validFrom, DateTime validTo)
Parameters
Type Name Description
DateTime validFrom
DateTime validTo
Returns
Type Description
Restriction

IdxValidFromValidToIsActive(DateTime, DateTime, Int16)

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

FieldDescription
ValidFromThe date (inclusive) the pricelist start to be valid. This can be DateTime.MinValue to signal that it doesn't have a specific start date.
ValidToThe date (inclusive) the pricelist ends to be valid. This can be DateTime.MaxValue to signal that it doesn't have a specific end date.
IsActiveIs the list active (as opposed to being worked on, suddenly canceled, etc.
Declaration
public Restriction IdxValidFromValidToIsActive(DateTime validFrom, DateTime validTo, short isActive)
Parameters
Type Name Description
DateTime validFrom
DateTime validTo
Int16 isActive
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