Show / Hide Table of Contents

Class SoDictionary

Implementation of the SuperOffice Deployed Dictionary

Inheritance
object
SoDictionary
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Data.Dictionary
Assembly: SoDataBase.dll
Syntax
public class SoDictionary

Properties

IsDatabaseUnicode

Is the database unicode, i.e., strings stored in unicode (usually UTF16)? If not, then ANSI with the current code page is used

Declaration
public bool IsDatabaseUnicode { get; }
Property Value
Type Description
bool

IsLoaded

Implementation of the SuperOffice Deployed Dictionary

Declaration
public bool IsLoaded { get; }
Property Value
Type Description
bool

this[FieldInfo]

Return an SoField object based on a FieldInfo (name/name lookup)

Declaration
public SoField this[FieldInfo fieldInfo] { get; }
Parameters
Type Name Description
FieldInfo fieldInfo

FieldInfo used for the lookup; its name and its table name are used

Property Value
Type Description
SoField

Field definition object

this[TableInfo]

Return an SoTable object based on a TableInfo object

Declaration
public SoTable this[TableInfo tableInfo] { get; }
Parameters
Type Name Description
TableInfo tableInfo
Property Value
Type Description
SoTable

Table definition object

this[int]

Return an SoTable object based on the table number

Declaration
public SoTable this[int key] { get; }
Parameters
Type Name Description
int key

Table number (please do not hardcode as they may change!)

Property Value
Type Description
SoTable

Table definition object

this[string]

Return an SoTable object based on the table name

Declaration
public SoTable this[string tableName] { get; }
Parameters
Type Name Description
string tableName
Property Value
Type Description
SoTable

Table definition object

ListInfoIsLoaded

Implementation of the SuperOffice Deployed Dictionary

Declaration
public bool ListInfoIsLoaded { get; }
Property Value
Type Description
bool

Tables

Get a list of all the Tables in the deployed dictionary

Declaration
public SoTable[] Tables { get; }
Property Value
Type Description
SoTable[]

Methods

GetColumnIndex(int)

Get the column index from a composite field id

Declaration
public static int GetColumnIndex(int fieldId)
Parameters
Type Name Description
int fieldId

Dictionary field id

Returns
Type Description
int

Column index, first column of a table has index 0

GetFromFieldNumber(int)

Get the SoField object, based on the field number (C++ style table + field number combination)

Declaration
public SoField GetFromFieldNumber(int fieldNumber)
Parameters
Type Name Description
int fieldNumber

Field number, consists of table number << 8 + zero-based field number

Returns
Type Description
SoField

Field definition, null if the field number does not correspond to a field

GetFromTableName(string)

Get the SoTable object based on the table name. Same as the string indexer.

Declaration
public SoTable GetFromTableName(string tableName)
Parameters
Type Name Description
string tableName
Returns
Type Description
SoTable

Table definition; null if the table name does not correspond to a table

GetFromTableNumber(int)

Get the SoTable object based on the SODBIF table number

Declaration
public SoTable GetFromTableNumber(int tableNumber)
Parameters
Type Name Description
int tableNumber

Table number, sequence = 0

Returns
Type Description
SoTable

Table definition; null if the table number does not correspond to a table

GetStepsFromNetServerCode()

Get information about what steps have contributed with generated code in this installation. All loaded assemblies (including partner code) are included in the scan.

Declaration
public static DictionaryStepInfo[] GetStepsFromNetServerCode()
Returns
Type Description
DictionaryStepInfo[]

GetStepsInDatabase()

Get information about what steps have been applied to the database

Declaration
public DictionaryStepInfo[] GetStepsInDatabase()
Returns
Type Description
DictionaryStepInfo[]

GetTableNumber(int)

Get the table number from a composite field id

Declaration
public static int GetTableNumber(int fieldId)
Parameters
Type Name Description
int fieldId

Dictionary field id

Returns
Type Description
int

Table number the field resides in

HasTable(string)

Check if the given table (by name) exists in the dictionary

Declaration
public bool HasTable(string tableName)
Parameters
Type Name Description
string tableName

Table name to check, case insensitive

Returns
Type Description
bool

true if the table exists in the dictionary

IsSpecialDbPatchInstalled(string)

Check if a certain special database patch has been installed on this database, by patch name

Declaration
public bool IsSpecialDbPatchInstalled(string patchName)
Parameters
Type Name Description
string patchName

Patch name, case insensitive

Returns
Type Description
bool

true if patch has been enabled

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