Skip to content

AdoNetGrainStorage

class

Namespace: Orleans.Storage

Stores grain state in a relational database using ADO.NET.
public class AdoNetGrainStorage : ILifecycleParticipant<ISiloLifecycle>, IGrainStorage

Remarks

Configuration is provided through AdoNetGrainStorageOptions.

Configure exactly one of AdoNetGrainStorageOptions or AdoNetGrainStorageOptions.

AdoNetGrainStorageOptions identifies the ADO.NET provider and defaults to Microsoft.Data.SqlClient.

Constructors

Properties

  • CurrentOperationalQueries The queries currently used. When this is updated, the new queries will take effect immediately.
  • HashPicker The hash generator used to hash natural keys, grain ID and grain type to a more narrow index.
  • Serializer Gets or sets the serializer used to convert grain state to and from its stored representation.

Methods

Fields