-
Notifications
You must be signed in to change notification settings - Fork 0
DiGi.Unit.IO.Classes
Represents a column in a table that is associated with a specific unit of measurement, extending the basic extended column functionality.
public class UnitColumn : DiGi.Core.IO.Table.Classes.ExtendedColumnInheritance System.Object → DiGi.Core.Classes.Object → DiGi.Core.Classes.SerializableObject → DiGi.Core.IO.Table.Classes.Column → DiGi.Core.IO.Table.Classes.ExtendedColumn → UnitColumn
Initializes a new instance of the UnitColumn class by cloning an existing UnitColumn instance.
public UnitColumn(DiGi.Unit.IO.Classes.UnitColumn unitColumn);unitColumn UnitColumn
The source column to clone.
Initializes a new instance of the UnitColumn class with specified name, unit, category, and description, defaulting the type to double.
public UnitColumn(string? name, DiGi.Unit.Classes.Unit? unit, string? category, string? description);name System.String
The name of the column.
The unit associated with the column.
category System.String
The category metadata for the column.
description System.String
The description metadata for the column.
Initializes a new instance of the UnitColumn class with specified name, unit, category, description, and specific unit data type.
public UnitColumn(string? name, DiGi.Unit.Classes.Unit? unit, string? category, string? description, DiGi.Unit.Enums.UnitDataType unitDataType);name System.String
The name of the column.
The unit associated with the column.
category System.String
The category metadata for the column.
description System.String
The description metadata for the column.
unitDataType DiGi.Unit.Enums.UnitDataType
The data type of the unit column.
Initializes a new instance of the UnitColumn class from a JSON object.
public UnitColumn(System.Text.Json.Nodes.JsonObject jsonObject);jsonObject System.Text.Json.Nodes.JsonObject
The JSON object containing the column data.
Gets or sets the unit associated with this column.
public DiGi.Unit.Classes.Unit? Unit { get; set; }Gets the unit data type based on the underlying type of the column.
public DiGi.Unit.Enums.UnitDataType UnitDataType { get; }