Table of Contents

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

Id int

The attribute value identifier (primary key).

Type int

Value type code.

Value double

The numeric attribute value.

Name string

The attribute name.

PrivilegeId int

Access privilege identifier.

Fields

ExpectedRowSize

The expected row body size in bytes: 44.

public const int ExpectedRowSize = 44

Field Value

int

TableKey

The table key in model database sections: 48.

public const int TableKey = 48

Field Value

int

Properties

Id

The attribute value identifier (primary key).

public int Id { get; init; }

Property Value

int

Name

The attribute name.

public string Name { get; init; }

Property Value

string

PrivilegeId

Access privilege identifier.

public int PrivilegeId { get; init; }

Property Value

int

Type

Value type code.

public int Type { get; init; }

Property Value

int

Value

The numeric attribute value.

public double Value { get; init; }

Property Value

double

Methods

Decode(ReadOnlySpan<byte>)

Decodes a row body into a TdbIO.NumAttrAttrRow.

public static NumAttrAttrRow Decode(ReadOnlySpan<byte> body)

Parameters

body ReadOnlySpan<byte>

Returns

NumAttrAttrRow

Decode(TableRow)

Decodes the body of row into a TdbIO.NumAttrAttrRow.

public static NumAttrAttrRow Decode(TableRow row)

Parameters

row TableRow

Returns

NumAttrAttrRow