AdoNetGrainStorage
class
Namespace: Orleans.Storage
A storage provider for writing grain state data to relational storage.
public class AdoNetGrainStorage : ILifecycleParticipant<ISiloLifecycle>, IGrainStorageRemarks
Configuration is provided through AdoNetGrainStorageOptions.
Required configuration: ConnectionString - The database connection string.
Optional configuration: Invariant - The ADO.NET provider invariant name (defaults to Microsoft.Data.SqlClient).
Constructors
Properties
CurrentOperationalQueriesThe queries currently used. When this is updated, the new queries will take effect immediately.HashPickerThe hash generator used to hash natural keys, grain ID and grain type to a more narrow index.Serializer
Methods
ClearStateAsync(string, GrainId, IGrainState<T>)Clear state data function for this storage provider.Participate(ISiloLifecycle)Adds the provided observer as a participant in the lifecycle.ReadStateAsync(string, GrainId, IGrainState<T>)Read state data function for this storage provider.WriteStateAsync(string, GrainId, IGrainState<T>)Write state data function for this storage provider.
Fields
BinaryFormatSerializerTagTag for BinaryFormatSerializerDefaultInitializationQueryThe default query to initialize this structure from the Orleans database.JsonFormatSerializerTagTag for JsonFormatSerializerXmlFormatSerializerTagTag for XmlFormatSerializer
