Class RefCountsPermissionCache
Inheritance
RefCountsPermissionCache
Assembly: SoDataBase.dll
Syntax
[CacheV2("Database", 0)]
public class RefCountsPermissionCache : CacheBaseV2, IFlushableV2, IDisposable
Properties
TableNames
Gets the names of the table data that are cached in this cache. When these tables are updated
the cache will be disposed so a new cache instance can take its place.
Declaration
protected override IEnumerable<string> TableNames { get; }
Property Value
Overrides
Methods
GetCurrent()
Obtain an instance of the cache
Declaration
public static RefCountsPermissionCache GetCurrent()
Returns
GetFieldRight(SoField, int)
Declaration
public FieldRight GetFieldRight(SoField field, int primaryKey = 0)
Parameters
Type |
Name |
Description |
SoField |
field |
|
int |
primaryKey |
|
Returns
GetFieldRight(SoTable)
Declaration
public FieldRight GetFieldRight(SoTable table)
Parameters
Type |
Name |
Description |
SoTable |
table |
|
Returns
IsCacheInvalidated(string, int, PrivateSave)
Invalidate the cache if the controlling data is changed, but not every time the count changes - this cache is only about permissions
Declaration
protected override bool IsCacheInvalidated(string tableName, int primaryKey, PrivateSave save)
Parameters
Returns
Overrides
OnLoad()
Declaration
protected override void OnLoad()
Overrides
Implements
Extension Methods