Class UserPreferenceTableInfo
Table 'UserPreference': Preference system. If deflevel is set to 5; the user may change the preferences
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("UserPreference")]
public class UserPreferenceTableInfo : 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 UserPreference in the database dictionary: UserPreference
Declaration
public const string DictionaryTableName = "UserPreference"
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
Deflevel
Field 'deflevel' in table 'UserPreference': Dictionary type Enum, .NET type: PreferenceLevel
The level: 0=hard default, 1=systemwide, 2=database, 3=group, 4=individual
Declaration
public PreferenceLevelFieldInfo Deflevel { get; }
Property Value
Type | Description |
---|---|
PreferenceLevelFieldInfo |
DictionaryTableNumber
Table number for table UserPreference 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 |
Maxlevel
Field 'maxlevel' in table 'UserPreference': Dictionary type Enum, .NET type: PreferenceLevel
Highest override level allowed
Declaration
public PreferenceLevelFieldInfo Maxlevel { get; }
Property Value
Type | Description |
---|---|
PreferenceLevelFieldInfo |
OwnerId
Field 'owner_id' in table 'UserPreference': Dictionary type Id, .NET type: Int32
level=3: group; level=4: associate
Declaration
public Int32FieldInfo OwnerId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Prefkey
Field 'prefkey' in table 'UserPreference': Dictionary type String[200], .NET type: String
Preference key name
Declaration
public StringFieldInfo Prefkey { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
Prefsection
Field 'prefsection' in table 'UserPreference': Dictionary type String[200], .NET type: String
Preference section name
Declaration
public StringFieldInfo Prefsection { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
Prefvalue
Field 'prefvalue' in table 'UserPreference': Dictionary type String[2047], .NET type: String
Preference value
Declaration
public StringFieldInfo Prefvalue { get; }
Property Value
Type | Description |
---|---|
StringFieldInfo |
Registered
Field 'registered' in table 'UserPreference': 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 'UserPreference': 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 'UserPreference': 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 'UserPreference': 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 'UserPreference': Dictionary type UShort, .NET type: Int16
Number of updates made to this record
Declaration
public UInt16FieldInfo UpdatedCount { get; }
Property Value
Type | Description |
---|---|
UInt16FieldInfo |
UserpreferenceId
Field 'userpreference_id' in table 'UserPreference': Dictionary type PK, .NET type: Int32
Primary key
Declaration
public Int32FieldInfo UserpreferenceId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Methods
IdxPrefsection(String)
Shortcut method for looking up using the database index Prefsection, which spans the following fields:
Field | Description |
---|---|
Prefsection | Preference section name |
Declaration
public Restriction IdxPrefsection(string prefsection)
Parameters
Type | Name | Description |
---|---|---|
String | prefsection |
Returns
Type | Description |
---|---|
Restriction |
IdxPrefsectionPrefkey(String, String)
Shortcut method for looking up using the database index PrefsectionPrefkey, which spans the following fields:
Field | Description |
---|---|
Prefsection | Preference section name |
Prefkey | Preference key name |
Declaration
public Restriction IdxPrefsectionPrefkey(string prefsection, string prefkey)
Parameters
Type | Name | Description |
---|---|---|
String | prefsection | |
String | prefkey |
Returns
Type | Description |
---|---|
Restriction |
IdxPrefsectionPrefkeyDeflevel(String, String, PreferenceLevel)
Shortcut method for looking up using the database index PrefsectionPrefkeyDeflevel, which spans the following fields:
Field | Description |
---|---|
Prefsection | Preference section name |
Prefkey | Preference key name |
Deflevel | The level: 0=hard default, 1=systemwide, 2=database, 3=group, 4=individual |
Declaration
public Restriction IdxPrefsectionPrefkeyDeflevel(string prefsection, string prefkey, PreferenceLevel deflevel)
Parameters
Type | Name | Description |
---|---|---|
String | prefsection | |
String | prefkey | |
PreferenceLevel | deflevel |
Returns
Type | Description |
---|---|
Restriction |