Class MDOListTableCacheBase
Cache for items in the MDO tables.
Inherited Members
Namespace: SuperOffice.CRM.Cache
Assembly: SoDataBase.dll
Syntax
public abstract class MDOListTableCacheBase : CacheBaseV2
Constructors
MDOListTableCacheBase()
Cache for items in the MDO tables.
Declaration
protected MDOListTableCacheBase()
Fields
_elementsById
Cache for items in the MDO tables.
Declaration
protected Dictionary<int, MDOListTableCacheBase.MDOCacheElement> _elementsById
Field Value
| Type | Description |
|---|---|
| Dictionary<int, MDOListTableCacheBase.MDOCacheElement> |
_elementsByName
Cache for items in the MDO tables.
Declaration
protected Dictionary<string, MDOListTableCacheBase.MDOCacheElement> _elementsByName
Field Value
| Type | Description |
|---|---|
| Dictionary<string, MDOListTableCacheBase.MDOCacheElement> |
Methods
GetAllItems()
Lookup items from ID
Declaration
public IEnumerable<MDOListTableCacheBase.MDOCacheElement> GetAllItems()
Returns
| Type | Description |
|---|---|
| IEnumerable<MDOListTableCacheBase.MDOCacheElement> | Cached item. |
GetItemById(int)
Lookup items from ID
Declaration
public MDOListTableCacheBase.MDOCacheElement GetItemById(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | Primary key. |
Returns
| Type | Description |
|---|---|
| MDOListTableCacheBase.MDOCacheElement | Cached item. |
GetItemByName(string)
Lookup item from name
Declaration
public MDOListTableCacheBase.MDOCacheElement GetItemByName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name. |
Returns
| Type | Description |
|---|---|
| MDOListTableCacheBase.MDOCacheElement | Cached item. |
GetNameById(int)
Get an item name on the primary key of the item in the table. This method never returns null, instead you get an empty string if the element does not exist.
Declaration
public string GetNameById(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | Primary key of the item in the table. |
Returns
| Type | Description |
|---|---|
| string | Name from the list element, or the empty string |