Struct NumAttrAttrRow
- Namespace
- TdbIO
- Assembly
- TdbIO.dll
Decoded row of table 48 (numattr_attr, size 44): numeric attribute definition and value.
public readonly record struct NumAttrAttrRow : IEquatable<NumAttrAttrRow>Implements
Inherited Members
Constructors
NumAttrAttrRow(int, int, double, string, int)
Decoded row of table 48 (numattr_attr, size 44): numeric attribute definition and value.
public NumAttrAttrRow(int Id, int Type, double Value, string Name, int PrivilegeId)Parameters
Idint-
The attribute value identifier (primary key).
Typeint-
Value type code.
Valuedouble-
The numeric attribute value.
Namestring-
The attribute name.
PrivilegeIdint-
Access privilege identifier.
Fields
ExpectedRowSize
The expected row body size in bytes: 44.
public const int ExpectedRowSize = 44Field Value
TableKey
The table key in model database sections: 48.
public const int TableKey = 48Field Value
Properties
Id
The attribute value identifier (primary key).
public int Id { get; init; }Property Value
Name
The attribute name.
public string Name { get; init; }Property Value
PrivilegeId
Access privilege identifier.
public int PrivilegeId { get; init; }Property Value
Type
Value type code.
public int Type { get; init; }Property Value
Value
The numeric attribute value.
public double Value { get; init; }Property Value
Methods
Decode(ReadOnlySpan<byte>)
Decodes a row body into a TdbIO.NumAttrAttrRow.
public static NumAttrAttrRow Decode(ReadOnlySpan<byte> body)Parameters
bodyReadOnlySpan<byte>
Returns
Decode(TableRow)
Decodes the body of row into a TdbIO.NumAttrAttrRow.
public static NumAttrAttrRow Decode(TableRow row)Parameters
rowTableRow