Table of Contents

Class KeySchemaElement

Namespace
DynaSharp.Requests
Assembly
DynaSharp.dll

One attribute of a primary key.

public sealed record KeySchemaElement : IEquatable<KeySchemaElement>
Inheritance
KeySchemaElement
Implements
Inherited Members

Constructors

KeySchemaElement(string, KeyType)

One attribute of a primary key.

public KeySchemaElement(string AttributeName, KeyType KeyType)

Parameters

AttributeName string

The attribute name.

KeyType KeyType

Whether it is the partition (hash) or sort (range) key.

Properties

AttributeName

The attribute name.

public string AttributeName { get; init; }

Property Value

string

KeyType

Whether it is the partition (hash) or sort (range) key.

public KeyType KeyType { get; init; }

Property Value

KeyType

Methods

Deconstruct(out string, out KeyType)

public void Deconstruct(out string AttributeName, out KeyType KeyType)

Parameters

AttributeName string
KeyType KeyType

Equals(KeySchemaElement?)

public bool Equals(KeySchemaElement? other)

Parameters

other KeySchemaElement

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(KeySchemaElement?, KeySchemaElement?)

public static bool operator ==(KeySchemaElement? left, KeySchemaElement? right)

Parameters

left KeySchemaElement
right KeySchemaElement

Returns

bool

operator !=(KeySchemaElement?, KeySchemaElement?)

public static bool operator !=(KeySchemaElement? left, KeySchemaElement? right)

Parameters

left KeySchemaElement
right KeySchemaElement

Returns

bool