Show / Hide Table of Contents

Class FavoritesCache

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

Inheritance
Object
CacheBaseV2
FavoritesCache
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 FavoritesCache : CacheBaseV2, IFlushableV2, IDisposable

Properties

TableNames

Read-only cache of the favorites 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 favorites table for the current user

Declaration
public static FavoritesCache GetCurrent()
Returns
Type Description
FavoritesCache

GetFavoriteIds(Int32, String)

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

Declaration
public IEnumerable<int> GetFavoriteIds(int tableId, string extraInfo = "")
Parameters
Type Name Description
Int32 tableId

Table id (6 = contact, etc)

String extraInfo
Returns
Type Description
IEnumerable<Int32>

List of record ids

GetFavoriteIds(String, String)

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

Declaration
public IEnumerable<int> GetFavoriteIds(string tableName, string extraInfo = "")
Parameters
Type Name Description
String tableName

Table name ("contact", etc)

String extraInfo
Returns
Type Description
IEnumerable<Int32>

List of record ids

OnLoad()

Read-only cache of the favorites 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