Class RefCountsPermissionCache
Inheritance
RefCountsPermissionCache
Assembly: SoDataBase.dll
Syntax
[CacheV2("Database", 0)]
public class RefCountsPermissionCache : CacheBaseV2, IFlushableV2, IDisposable
Properties
TableNames
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, Int32)
Declaration
public FieldRight GetFieldRight(SoField field, int primaryKey = 0)
Parameters
Returns
GetFieldRight(SoTable)
Declaration
public FieldRight GetFieldRight(SoTable table)
Parameters
Type |
Name |
Description |
SoTable |
table |
|
Returns
IsCacheInvalidated(String, Int32, 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
EnumUtil.MapEnums<From, To>(From)