Class FavoritesCache
Read-only cache of the favorites table for the current user
Inherited Members
CacheBaseV2.IsCacheInvalidated(String, Int32, PrivateSave)
CacheBaseV2.Dispose()
CacheBaseV2.Flush()
CacheBaseV2.GetCurrent<T>()
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
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()