DataItemQuery
Class DataItemQuery
Section titled “ Class DataItemQuery”Namespace: DataWarehouseAutomation.DwaModel
Assembly: DataWarehouseAutomation.dll
public class DataItemQuery : 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 Query 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
[JsonIgnore(Condition = JsonIgnoreCondition.Always)]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”An identifier for the Data Query.
[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 for the query.
[JsonPropertyName("name")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]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?
QueryCode
Section titled “ QueryCode”The actual code that constitutes the query.
[JsonPropertyName("queryCode")]public string? QueryCode { get; set; }
Property Value
Section titled “Property Value”QueryLanguage
Section titled “ QueryLanguage”The language that the code was written in (e.g. SQL).
[JsonPropertyName("queryLanguage")][JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]public string? QueryLanguage { 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 Data Item Queries 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 Item Queries 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