Table of Contents

Class FieldChange

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

A single field-level difference between the persisted schema and the current one, with its severity.

public class FieldChange
Inheritance
FieldChange
Inherited Members

Constructors

FieldChange(FieldChangeKind, string, int, CompatibilityLevel, FieldType, FieldType, int, int, int, int)

Creates a field change record. Type, offset, and size arguments are optional and default to unset.

public FieldChange(FieldChangeKind kind, string fieldName, int fieldId, CompatibilityLevel level, FieldType oldType = FieldType.None, FieldType newType = FieldType.None, int oldOffset = 0, int newOffset = 0, int oldSize = 0, int newSize = 0)

Parameters

kind FieldChangeKind

Kind of change.

fieldName string

Name of the affected field.

fieldId int

Unique field identifier.

level CompatibilityLevel

Severity of the change.

oldType FieldType

Field type in the persisted schema.

newType FieldType

Field type in the new schema.

oldOffset int

Byte offset in the persisted layout.

newOffset int

Byte offset in the new layout.

oldSize int

Byte size in the persisted layout.

newSize int

Byte size in the new layout.

Properties

FieldId

Unique field identifier of the affected field.

public int FieldId { get; }

Property Value

int

FieldName

Name of the affected field.

public string FieldName { get; }

Property Value

string

Kind

Kind of change.

public FieldChangeKind Kind { get; }

Property Value

FieldChangeKind

Level

Severity of this change.

public CompatibilityLevel Level { get; }

Property Value

CompatibilityLevel

NewOffset

Byte offset in the new layout; 0 when not applicable.

public int NewOffset { get; }

Property Value

int

NewSize

Byte size in the new layout; 0 when not applicable.

public int NewSize { get; }

Property Value

int

NewType

Field type in the new schema; None when not applicable (e.g. a removed field).

public FieldType NewType { get; }

Property Value

FieldType

OldOffset

Byte offset in the persisted layout; 0 when not applicable.

public int OldOffset { get; }

Property Value

int

OldSize

Byte size in the persisted layout; 0 when not applicable.

public int OldSize { get; }

Property Value

int

OldType

Field type in the persisted schema; None when not applicable (e.g. an added field).

public FieldType OldType { get; }

Property Value

FieldType