public sealed class KeyReference documentation and code samples for the Google.Cloud.Spanner.Data class Key.
Immutable class that defines a key for a single row in a table or index.
Namespace
Google.Cloud.Spanner.DataAssembly
Google.Cloud.Spanner.Data.dll
Constructors
Key(params object[])
public Key(params object[] keyParts)Creates a key consisting of the given key parts.
| Parameter | |
|---|---|
| Name | Description |
keyParts |
objectThe values that define the key |
Methods
ToString(SpannerConnectionStringBuilder)
public string ToString(SpannerConnectionStringBuilder builder)Returns the string representation of this key using the type conversion options specified in SpannerConnectionStringBuilder. The string representation is only for diagnostic purposes and the implementation may change over time.
| Parameter | |
|---|---|
| Name | Description |
builder |
SpannerConnectionStringBuilderThe SpannerConnectionStringBuilder instance. |
| Returns | |
|---|---|
| Type | Description |
string |
A string that represents the current key. |