Class KeySchemaElement
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
AttributeNamestringThe attribute name.
KeyTypeKeyTypeWhether it is the partition (hash) or sort (range) key.
Properties
AttributeName
The attribute name.
public string AttributeName { get; init; }
Property Value
KeyType
Whether it is the partition (hash) or sort (range) key.
public KeyType KeyType { get; init; }
Property Value
Methods
Deconstruct(out string, out KeyType)
public void Deconstruct(out string AttributeName, out KeyType KeyType)
Parameters
Equals(KeySchemaElement?)
public bool Equals(KeySchemaElement? other)
Parameters
otherKeySchemaElement
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(KeySchemaElement?, KeySchemaElement?)
public static bool operator ==(KeySchemaElement? left, KeySchemaElement? right)
Parameters
leftKeySchemaElementrightKeySchemaElement
Returns
operator !=(KeySchemaElement?, KeySchemaElement?)
public static bool operator !=(KeySchemaElement? left, KeySchemaElement? right)
Parameters
leftKeySchemaElementrightKeySchemaElement