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
Idint-
The relation identifier (primary key).
Typeint-
The relation type code.
Id1int-
The first related object identifier.
Id2int-
The second related object identifier.
Guidstring-
The relation GUID string.
Flagsint-
Relation flags.
Fields
ExpectedRowSize
The expected row body size in bytes: 60.
public const int ExpectedRowSize = 60Field Value
TableKey
The table key in model database sections: 16.
public const int TableKey = 16Field Value
Properties
Flags
Relation flags.
public int Flags { get; init; }Property Value
Guid
The relation GUID string.
public string Guid { get; init; }Property Value
Id
The relation identifier (primary key).
public int Id { get; init; }Property Value
Id1
The first related object identifier.
public int Id1 { get; init; }Property Value
Id2
The second related object identifier.
public int Id2 { get; init; }Property Value
Type
The relation type code.
public int Type { get; init; }Property Value
Methods
Decode(ReadOnlySpan<byte>)
Decodes a row body into a TdbIO.RelationRow.
public static RelationRow Decode(ReadOnlySpan<byte> body)Parameters
bodyReadOnlySpan<byte>
Returns
Decode(TableRow)
Decodes the body of row into a TdbIO.RelationRow.
public static RelationRow Decode(TableRow row)Parameters
rowTableRow