Struct WritePolicy
For an entity type, decide how cache entries should be stored.
public readonly struct WritePolicy
- Inherited Members
Properties
Client
Reference data is stored on disk and master data is stored in memory, except for entities containing BLOBs.
public static WritePolicy Client { get; }
Property Value
Disabled
No entries are stored, disabling the cache.
public static WritePolicy Disabled { get; }
Property Value
Server
All cache entries are stored in memory, except for entities containing BLOBs.
public static WritePolicy Server { get; }
Property Value
Methods
Custom(Func<IEntityInfo, WriteOutcome>)
Application-specific storage determination.
public static WritePolicy Custom(Func<IEntityInfo, WriteOutcome> func)
Parameters
funcFunc<IEntityInfo, WriteOutcome>
Returns
Operators
implicit operator WritePolicy(Func<IEntityInfo, WriteOutcome>)
public static implicit operator WritePolicy(Func<IEntityInfo, WriteOutcome> func)
Parameters
funcFunc<IEntityInfo, WriteOutcome>