Table of Contents

Struct RelationRow

Namespace
TdbIO
Assembly
TdbIO.dll

Decoded row of table 16 (relation, size 60): relationship between two objects.

public readonly record struct RelationRow : IEquatable<RelationRow>

Implements

Inherited Members

Constructors

RelationRow(int, int, int, int, string, int)

Decoded row of table 16 (relation, size 60): relationship between two objects.

public RelationRow(int Id, int Type, int Id1, int Id2, string Guid, int Flags)

Parameters

Id int

The relation identifier (primary key).

Type int

The relation type code.

Id1 int

The first related object identifier.

Id2 int

The second related object identifier.

Guid string

The relation GUID string.

Flags int

Relation flags.

Fields

ExpectedRowSize

The expected row body size in bytes: 60.

public const int ExpectedRowSize = 60

Field Value

int

TableKey

The table key in model database sections: 16.

public const int TableKey = 16

Field Value

int

Properties

Flags

Relation flags.

public int Flags { get; init; }

Property Value

int

Guid

The relation GUID string.

public string Guid { get; init; }

Property Value

string

Id

The relation identifier (primary key).

public int Id { get; init; }

Property Value

int

Id1

The first related object identifier.

public int Id1 { get; init; }

Property Value

int

Id2

The second related object identifier.

public int Id2 { get; init; }

Property Value

int

Type

The relation type code.

public int Type { get; init; }

Property Value

int

Methods

Decode(ReadOnlySpan<byte>)

Decodes a row body into a TdbIO.RelationRow.

public static RelationRow Decode(ReadOnlySpan<byte> body)

Parameters

body ReadOnlySpan<byte>

Returns

RelationRow

Decode(TableRow)

Decodes the body of row into a TdbIO.RelationRow.

public static RelationRow Decode(TableRow row)

Parameters

row TableRow

Returns

RelationRow