Show / Hide Table of Contents

Class ErpFieldRecordData

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the ErpField table.

Inheritance
object
ErpFieldRecordData
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class ErpFieldRecordData
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Constructors

ErpFieldRecordData()

POCO (Plain Old CLR Object) class that can be used to hold data corresponding to a row from the ErpField table.

Declaration
public ErpFieldRecordData()
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Fields

Access

Access restrictions for the field

Declaration
public FieldAccess Access
Field Value
Type Description
FieldAccess
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

CrmFieldKey

The CRM field name, as implemented by the Sync entities

Declaration
public string CrmFieldKey
Field Value
Type Description
string
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

DefaultValue

Default value, stored using CultureDataFormatter format if it is not a string

Declaration
public string DefaultValue
Field Value
Type Description
string
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

DisplayDescription

Tooltip for the field name.

Declaration
public string DisplayDescription
Field Value
Type Description
string
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

DisplayName

Localized field name – shown in the GUI as the label for the control.

Declaration
public string DisplayName
Field Value
Type Description
string
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

ErpConnectionActorTypeId

Link to Erp Connection/Actor type

Declaration
public int ErpConnectionActorTypeId
Field Value
Type Description
int
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

ErpFieldId

Primary key

Declaration
public int ErpFieldId
Field Value
Type Description
int
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

ErpFieldKey

The ERP field key

Declaration
public string ErpFieldKey
Field Value
Type Description
string
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

FieldType

Field type

Declaration
public FieldMetadataType FieldType
Field Value
Type Description
FieldMetadataType
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

FirstSyncDefaultValue

The default value to be set, can be blank

Declaration
public string FirstSyncDefaultValue
Field Value
Type Description
string
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

HasFirstSyncDefaultValue

Should a default value be set on first sync

Declaration
public short HasFirstSyncDefaultValue
Field Value
Type Description
short
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

ListName

The ERP list name, if the field has a list of values supplied by the ERP Connector

Declaration
public string ListName
Field Value
Type Description
string
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

ListReference

Reference to CRM list, if a mapping exists. Format: table=<table name>[&<extra id>=<value>], to make it independent of actual table numbers

Declaration
public string ListReference
Field Value
Type Description
string
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Mandatory

Should the user be forced to set a value (the Erp Connector may declare fields mandatory as well)

Declaration
public short Mandatory
Field Value
Type Description
short
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

MaxLength

Maximum size of the field, if there is a limit

Declaration
public int MaxLength
Field Value
Type Description
int
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

MissingInERP

Set to true if this field has previously been defined, but was no longer in the 'supported fields' response from the connector. This typically happens if the target ERP system changes, and means the field needs to be unmapped.

Declaration
public short MissingInERP
Field Value
Type Description
short
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

PromptUser

Should the field be shown in the first-sync GUI; independent of whether a default value should be set

Declaration
public short PromptUser
Field Value
Type Description
short
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Rank

Rank order of lines in GUI, relevant if ShowInGui is true

Declaration
public int Rank
Field Value
Type Description
int
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Registered

Registered when in UTC.

Declaration
public DateTime Registered
Field Value
Type Description
DateTime
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

RegisteredAssociateId

Registered by whom

Declaration
public int RegisteredAssociateId
Field Value
Type Description
int
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

ShowInGui

Should this field be shown as a (read-only!) field in the CRM Gui

Declaration
public short ShowInGui
Field Value
Type Description
short
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

ShowInSearch

Should this field be shown in searches

Declaration
public short ShowInSearch
Field Value
Type Description
short
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

SyncToCrm

Should value changes in ERP be automatically transferred to CRM

Declaration
public short SyncToCrm
Field Value
Type Description
short
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

SyncToErp

Should value changes in CRM be automatically transferred to ERP

Declaration
public short SyncToErp
Field Value
Type Description
short
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Updated

Last updated when in UTC.

Declaration
public DateTime Updated
Field Value
Type Description
DateTime
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

UpdatedAssociateId

Last updated by whom

Declaration
public int UpdatedAssociateId
Field Value
Type Description
int
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

UpdatedCount

Number of updates made to this record

Declaration
public short UpdatedCount
Field Value
Type Description
short
Remarks

Please use this class instead of a full ErpFieldRow object when you do not need to create or update a value in the database. Row objects have a large overhead since they carry the corresponding ErpFieldTableInfo object, which in turn defines fields and aliases; there may be a Sentry on a row, and various other helper objects.

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ErpFieldRecordDataExtensions.ToInsertAsync(ErpFieldRecordData, CancellationToken)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top