Skip to content

AdoNetGrainStorageKeyFormat

enum

Namespace: Orleans.Configuration

Specifies how ADO.NET grain storage maps a grain state to the key columns of the OrleansStorage table.
public enum AdoNetGrainStorageKeyFormat

Remarks

The key format determines where state is stored. Changing the format of an existing database makes state written with the previous format unreachable; no automatic migration is performed.

Fields

NameValueDescription
Legacy0Stores the state name in GrainTypeString and keys rows by the grain key only. Integer and GUID keys are recognized by parsing the grain key.
GrainTypeQualified1Stores the grain type, state name, and grain key as hexadecimal text of their exact bytes, so that each combination of grain type, state name, and grain key has its own row under any database collation and hasher.