Class Key
Immutable class that defines a key for a single row in a table or index.
Namespace: Google.Cloud.Spanner.Data
Assembly: Google.Cloud.Spanner.Data.dll
Syntax
public sealed class Key
Constructors
Key(params object[])
Creates a key consisting of the given key parts.
Declaration
public Key(params object[] keyParts)
Parameters
Type | Name | Description |
---|---|---|
object[] | keyParts | The values that define the key |
Methods
ToString(SpannerConnectionStringBuilder)
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.
Declaration
public string ToString(SpannerConnectionStringBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
SpannerConnectionStringBuilder | builder | The SpannerConnectionStringBuilder instance. |
Returns
Type | Description |
---|---|
string | A string that represents the current key. |