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
PrefDescCache
Assembly: SoDataBase.dll
Syntax
[SoInject("Database")]
public class PrefDescCache : Object
Properties
Descriptions
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
Declaration
public IEnumerable<PrefDescRecordData> Descriptions { get; }
Property Value
Methods
GetAllDescriptions()
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
Declaration
public PrefDescRecordData[] GetAllDescriptions()
Returns
GetDescription(Int32)
Get the description that corresponds to a given ID
Declaration
public PrefDescRecordData GetDescription(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Returns
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
Returns
GetKeysInSection(String)
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
Declaration
public string[] GetKeysInSection(string section)
Parameters
Type |
Name |
Description |
String |
section |
|
Returns
GetLine(Int32)
Get the line description and showvalue that correspond to a given ID
Declaration
public PrefDescLineRecordData GetLine(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Returns
GetLine(Int32, 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 |
Int32 |
prefDescId |
|
String |
prefValue |
|
Returns
GetLines(Int32)
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
Declaration
public IEnumerable<PrefDescLineRecordData> GetLines(int prefDescId)
Parameters
Type |
Name |
Description |
Int32 |
prefDescId |
|
Returns
GetLines(String, String)
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
Declaration
public IEnumerable<PrefDescLineRecordData> GetLines(string section, string prefkey)
Parameters
Returns
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
Extension Methods
EnumUtil.MapEnums<From, To>(From)