Cardinality
Class Cardinality
Section titled “ Class Cardinality”Namespace: DataWarehouseAutomation.DwaModel
Assembly: DataWarehouseAutomation.dll
This object captures the cardinality and ordinality of a relationship. Cardinality refers to the uniqueness of data values contained in a column (attribute) of a database table. It defines the number of occurrences of one entity that are associated with the number of occurrences of another entity through a relationship.
public class Cardinality
Inheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Properties
Section titled “Properties”Classifications
Section titled “ Classifications”Free-form and optional classification for the Cardinality for use in generation logic (evaluation).
[JsonPropertyName("classifications")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]public List<DataClassification>? Classifications { get; set; }
Property Value
Section titled “Property Value”Extensions
Section titled “ Extensions”The collection of extension Key/Value pairs.
[JsonPropertyName("extensions")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]public List<Extension>? Extensions { get; set; }
Property Value
Section titled “Property Value”FromRange
Section titled “ FromRange”The ‘from’ component in the cardinality, e.g. the ‘1’ in 1 to many.
[JsonPropertyName("fromRange")]public CardinalityRange? FromRange { get; set; }
Property Value
Section titled “Property Value”Optional identifier as a string value to allow various identifier approaches.
[JsonPropertyName("id")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]public string? Id { get; set; }
Property Value
Section titled “Property Value”Optional information to name a certain cardinality construct. For example one-to-one, one-to-many, or many-to-many. E.g. one-to-one could be defined as {“fromRange”: {“min”: “1”, “max”: “1”}, “toRange”: {“min”: “1”, “max”: “1”}}.
[JsonPropertyName("name")]public string? Name { get; set; }
Property Value
Section titled “Property Value”Free-format notes.
[JsonPropertyName("notes")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]public string? Notes { get; set; }
Property Value
Section titled “Property Value”ToRange
Section titled “ ToRange”The ‘to’ component in the cardinality, e.g. the ‘many’ in 1 to many.
[JsonPropertyName("toRange")]public CardinalityRange? ToRange { get; set; }
Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”Use this method to assert if two Cardinalities are the same, based on their Ids.
public override bool Equals(object? obj)
Parameters
Section titled “Parameters”obj
object?
Returns
Section titled “Returns”True if the Cardinalities are the same, based on their Ids
GetHashCode()
Section titled “ GetHashCode()”Override to get a hash value that represents the identifier.
public override int GetHashCode()
Returns
Section titled “Returns”A 32-bit signed integer hash code
ToString()
Section titled “ ToString()”String override so that the object returns its value (‘Name’). When an instance of this class is passed to a method that expects a string, the ToString() method will be called implicitly to convert the object to a string, and the value of the “Name” property will be returned.
public override string ToString()
Returns
Section titled “Returns”The Name