Show / Hide Table of Contents

Class MDOListTableCacheBase

Cache for items in the MDO tables.

Inheritance
object
CacheBaseV2
MDOListTableCacheBase
MDOListTableCacheTypedBase<T>
Inherited Members
CacheBaseV2.IsCacheInvalidatedAsync(string, int, PrivateSave, CancellationToken)
CacheBaseV2.InstanceDispose()
CacheBaseV2.BeginDisableAutoUpdate()
CacheBaseV2.LoadAsync(CancellationToken)
CacheBaseV2.OnLoad()
CacheBaseV2.OnLoadAsync(CancellationToken)
CacheBaseV2.Load()
CacheBaseV2.Disposed
CacheBaseV2.TableNames
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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

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