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
Properties
Descriptions
Declaration
public IEnumerable<PrefDescRecordData> Descriptions { get; }
Property Value
Methods
GetAllDescriptions()
Declaration
public PrefDescRecordData[] GetAllDescriptions()
Returns
GetDescription(int)
Get the description that corresponds to a given ID
Declaration
public PrefDescRecordData GetDescription(int id)
Parameters
| Type |
Name |
Description |
| int |
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)
Declaration
public string[] GetKeysInSection(string section)
Parameters
| Type |
Name |
Description |
| string |
section |
|
Returns
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
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
GetLines(int)
Declaration
public IEnumerable<PrefDescLineRecordData> GetLines(int prefDescId)
Parameters
| Type |
Name |
Description |
| int |
prefDescId |
|
Returns
GetLines(string, string)
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