Show / Hide Table of Contents

Class HistoryCache

Read-only cache of the history table for the current user

Inheritance
Object
CacheBaseV2
HistoryCache
Implements
IFlushableV2
IDisposable
Inherited Members
CacheBaseV2.IsCacheInvalidated(String, Int32, PrivateSave)
CacheBaseV2.Dispose()
CacheBaseV2.Flush()
CacheBaseV2.BeginDisableAutoUpdate()
CacheBaseV2.GetCurrent<T>()
CacheBaseV2.Load()
CacheBaseV2.Disposed
Namespace: SuperOffice.CRM.Cache
Assembly: SoDataBase.dll
Syntax
[CacheV2("Database", 0)]
public class HistoryCache : CacheBaseV2, IFlushableV2, IDisposable

Properties

TableNames

Read-only cache of the history table for the current user

Declaration
protected override IEnumerable<string> TableNames { get; }
Property Value
Type Description
IEnumerable<String>
Overrides
CacheBaseV2.TableNames

Methods

GetCurrent()

Read-only cache of the history table for the current user

Declaration
public static HistoryCache GetCurrent()
Returns
Type Description
HistoryCache

GetHistoryIds(Int32, Int32)

Returns the list of history IDs for a given table for the current user.

Declaration
public IEnumerable<int> GetHistoryIds(int tableId, int extraId = 0)
Parameters
Type Name Description
Int32 tableId

Table id (6 = contact, etc)

Int32 extraId
Returns
Type Description
IEnumerable<Int32>

List of record ids

GetHistoryIds(String, Int32)

Returns the list of history IDs for a given table for the current user.

Declaration
public IEnumerable<int> GetHistoryIds(string tableName, int extraId = 0)
Parameters
Type Name Description
String tableName

Table name ("contact", etc)

Int32 extraId

Optional sub-history

Returns
Type Description
IEnumerable<Int32>

List of record ids

OnLoad()

Read-only cache of the history table for the current user

Declaration
protected override void OnLoad()
Overrides
CacheBaseV2.OnLoad()

Implements

IFlushableV2
IDisposable

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