Class RefCountsPermissionCache
Inheritance
RefCountsPermissionCache
Assembly: SoDataBase.dll
Syntax
[CacheV2(0)]
public class RefCountsPermissionCache : CacheBaseV2
Constructors
RefCountsPermissionCache()
Declaration
public RefCountsPermissionCache()
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
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
IsCacheInvalidatedAsync(string, int, PrivateSave, CancellationToken)
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 Task<bool> IsCacheInvalidatedAsync(string tableName, int primaryKey, PrivateSave save, CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
OnLoad()
Declaration
protected override void OnLoad()
Overrides
OnLoadAsync(CancellationToken)
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
protected override Task OnLoadAsync(CancellationToken cancellationToken)
Parameters
Returns
Overrides
Extension Methods