Skip to content

DataClassification

Namespace: DataWarehouseAutomation.DwaModel
Assembly: DataWarehouseAutomation.dll

Used to define a list of classifications (labels) and notes to add to various components of the schema definition.

public class DataClassification

objectDataClassification

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

The mandatory classification description, usually a keyword used for automation purposes.

[JsonPropertyName("classification")]
public string Classification { get; set; }

string

Optional identifier as a string value to allow various identifier approaches.

[JsonPropertyName("id")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Id { get; set; }

string?

Free-format notes on the Data Classification.

[JsonPropertyName("notes")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Notes { get; set; }

string?

Use this method to assert if two Data Classifications are the same, based on their Ids.

public override bool Equals(object? obj)

obj object?

bool

True if the Data Classifications are the same, based on their Ids

Override to get a hash value that represents the identifier.

public override int GetHashCode()

int

A 32-bit signed integer hash code

String override so that the object returns the classification value (‘classification’). 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 “Classification” property will be returned.

public override string ToString()

string

The Classification value