Class TransientEntityStore
- Namespace
- The.Persistence
- Assembly
- Instagile.dll
public sealed class TransientEntityStore : IEntityStore, IDependencyProvider, IDisposable
- Inheritance
-
TransientEntityStore
- Implements
- Inherited Members
Constructors
TransientEntityStore(EntityMetadataDictionary, bool, TimeProvider?)
public TransientEntityStore(EntityMetadataDictionary metadata, bool caseInsensitiveCollation = true, TimeProvider? timeProvider = null)
Parameters
metadataEntityMetadataDictionarycaseInsensitiveCollationbooltimeProviderTimeProvider
TransientEntityStore(EntityMetadataDictionary, TransientEntityStore, bool, TimeProvider?)
public TransientEntityStore(EntityMetadataDictionary metadata, TransientEntityStore sharedStore, bool caseInsensitiveCollation = true, TimeProvider? timeProvider = null)
Parameters
metadataEntityMetadataDictionarysharedStoreTransientEntityStorecaseInsensitiveCollationbooltimeProviderTimeProvider
Properties
Description
Human-readable name
public string Description { get; }
Property Value
TranslationPolicy
Preferred SQL generation config
public TranslationPolicy TranslationPolicy { get; }
Property Value
Methods
ConnectAsync(CallbackEnvironment)
Verifies that the store is available and access is permitted
public Task<Response<ConnectResult>> ConnectAsync(CallbackEnvironment environment)
Parameters
environmentCallbackEnvironment
Returns
ExecuteReads(CallbackEnvironment, IReadOnlyList<ReadOperation>, QueryConfig)
public Response<ReadResult> ExecuteReads(CallbackEnvironment environment, IReadOnlyList<ReadOperation> ops, QueryConfig config)
Parameters
environmentCallbackEnvironmentopsIReadOnlyList<ReadOperation>configQueryConfig
Returns
ExecuteReadsAsync(CallbackEnvironment, IReadOnlyList<ReadOperation>, QueryConfig, bool)
public Task<Response<ReadResult>> ExecuteReadsAsync(CallbackEnvironment environment, IReadOnlyList<ReadOperation> ops, QueryConfig config, bool cancellable)
Parameters
environmentCallbackEnvironmentStandard long-running I/O utilities.
opsIReadOnlyList<ReadOperation>A batch of isolated commands to execute.
configQueryConfigSettings affecting query execution.
cancellableboolTrue if app code explicitly requested cancellability (cancellation may still be triggered by errors otherwise).
Returns
ExecuteWritesAsync(CallbackEnvironment, IReadOnlyList<WriteOperation>, bool)
public Task<Response<WriteResult>> ExecuteWritesAsync(CallbackEnvironment environment, IReadOnlyList<WriteOperation> ops, bool cancellable)
Parameters
environmentCallbackEnvironmentStandard long-running I/O utilities.
opsIReadOnlyList<WriteOperation>A batch of transactional commands to execute.
cancellableboolTrue if app code explicitly requested cancellability (cancellation may still be triggered by errors otherwise).
Returns
~TransientEntityStore()
protected ~TransientEntityStore()
GetEntity(string)
public EntityStorage GetEntity(string entityName)
Parameters
entityNamestring
Returns
GetRelationship(string, string)
public IRelationshipStorage GetRelationship(string entityName, string relationshipName)
Parameters
Returns
HarvestDependencies()
public IEnumerable<ServiceDescriptor> HarvestDependencies()