Show / Hide Table of Contents

Class PrefDescCache

Cache for Preference Descriptions, stored in the prefdesc table. Since this table is only updated during upgrades, which imply a recycle anyway, it has a lifetime limited only by the database connection. There are about 700 prefdesc rows

Inheritance
object
PrefDescCache
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOfficeData
Assembly: SoDataBase.dll
Syntax
[SoInject("Database")]
public class PrefDescCache

Properties

Descriptions

Declaration
public IEnumerable<PrefDescRecordData> Descriptions { get; }
Property Value
Type Description
IEnumerablePrefDescRecordData

Methods

GetAllDescriptions()

Declaration
public PrefDescRecordData[] GetAllDescriptions()
Returns
Type Description
PrefDescRecordData

GetDescription(int)

Get the description that corresponds to a given ID

Declaration
public PrefDescRecordData GetDescription(int id)
Parameters
Type Name Description
int id
Returns
Type Description
PrefDescRecordData

GetDescription(string, string)

Get the description that corresponds to a given section/key; case-insensitive search

Declaration
public PrefDescRecordData GetDescription(string section, string key)
Parameters
Type Name Description
string section
string key
Returns
Type Description
PrefDescRecordData

GetKeysInSection(string)

Declaration
public string[] GetKeysInSection(string section)
Parameters
Type Name Description
string section
Returns
Type Description
string

GetLine(int)

Get the line description and showvalue that correspond to a given ID

Declaration
public PrefDescLineRecordData GetLine(int id)
Parameters
Type Name Description
int id
Returns
Type Description
PrefDescLineRecordData

GetLine(int, string)

Get the line description and showvalue that correspond to a a preference that comes from a prefdescline list item

Declaration
public PrefDescLineRecordData GetLine(int prefDescId, string prefValue)
Parameters
Type Name Description
int prefDescId
string prefValue
Returns
Type Description
PrefDescLineRecordData

GetLines(int)

Declaration
public IEnumerable<PrefDescLineRecordData> GetLines(int prefDescId)
Parameters
Type Name Description
int prefDescId
Returns
Type Description
IEnumerablePrefDescLineRecordData

GetLines(string, string)

Declaration
public IEnumerable<PrefDescLineRecordData> GetLines(string section, string prefkey)
Parameters
Type Name Description
string section
string prefkey
Returns
Type Description
IEnumerablePrefDescLineRecordData

GetSection(string)

Get the description that corresponds to a given section/key; case-insensitive search

Declaration
public PrefDescRecordData GetSection(string section)
Parameters
Type Name Description
string section
Returns
Type Description
PrefDescRecordData

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