DataItem
Class DataItem
Section titled “ Class DataItem”Namespace: DataWarehouseAutomation.DwaModel
Assembly: DataWarehouseAutomation.dll
Data items belong to data objects or data object queries. This means that a given data item always has a parent object. They describe the individual elements, such as the columns in a table or headers in a file.
public class DataItem : IDataItem
Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”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”CharacterLength
Section titled “ CharacterLength”The length, number of characters for the IDataItem.
[JsonPropertyName("characterLength")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]public int? CharacterLength { get; set; }
Property Value
Section titled “Property Value”int?
Classifications
Section titled “ Classifications”Free-form and optional classification for the Data Item for use in generation logic (evaluation).
[JsonPropertyName("classifications")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]public List<DataClassification>? Classifications { get; set; }
Property Value
Section titled “Property Value”DataObject
Section titled “ DataObject”The
[JsonPropertyName("dataObject")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]public IDataObject? DataObject { get; set; }
Property Value
Section titled “Property Value”DataType
Section titled “ DataType”The data type of the IDataItem. E.g. VARCHAR, int, text.
[JsonPropertyName("dataType")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]public string? DataType { 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”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”IsPrimaryKey
Section titled “ IsPrimaryKey”An indicator to flag whether this IDataItem is part of a Primary Key.
[JsonPropertyName("isPrimaryKey")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]public bool? IsPrimaryKey { get; set; }
Property Value
Section titled “Property Value”bool?
The name of the IDataItem.
[JsonPropertyName("name")][JsonIgnore(Condition = JsonIgnoreCondition.Never)]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”NumericPrecision
Section titled “ NumericPrecision”The precision for the IDataItem.
[JsonPropertyName("numericPrecision")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]public int? NumericPrecision { get; set; }
Property Value
Section titled “Property Value”int?
NumericScale
Section titled “ NumericScale”The number of decimal points for the IDataItem.
[JsonPropertyName("numericScale")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]public int? NumericScale { get; set; }
Property Value
Section titled “Property Value”int?
OrdinalPosition
Section titled “ OrdinalPosition”The position of the IDataItem in a Data Object or Data Object Query.
[JsonPropertyName("ordinalPosition")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]public int? OrdinalPosition { get; set; }
Property Value
Section titled “Property Value”int?
Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”Use this method to assert if two Data Items 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 Data Items 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