Class FieldChange
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
kindFieldChangeKindKind of change.
fieldNamestringName of the affected field.
fieldIdintUnique field identifier.
levelCompatibilityLevelSeverity of the change.
oldTypeFieldTypeField type in the persisted schema.
newTypeFieldTypeField type in the new schema.
oldOffsetintByte offset in the persisted layout.
newOffsetintByte offset in the new layout.
oldSizeintByte size in the persisted layout.
newSizeintByte size in the new layout.
Properties
FieldId
Unique field identifier of the affected field.
public int FieldId { get; }
Property Value
FieldName
Name of the affected field.
public string FieldName { get; }
Property Value
Kind
Kind of change.
public FieldChangeKind Kind { get; }
Property Value
Level
Severity of this change.
public CompatibilityLevel Level { get; }
Property Value
NewOffset
Byte offset in the new layout; 0 when not applicable.
public int NewOffset { get; }
Property Value
NewSize
Byte size in the new layout; 0 when not applicable.
public int NewSize { get; }
Property Value
NewType
Field type in the new schema; None when not applicable (e.g. a removed field).
public FieldType NewType { get; }
Property Value
OldOffset
Byte offset in the persisted layout; 0 when not applicable.
public int OldOffset { get; }
Property Value
OldSize
Byte size in the persisted layout; 0 when not applicable.
public int OldSize { get; }
Property Value
OldType
Field type in the persisted schema; None when not applicable (e.g. an added field).
public FieldType OldType { get; }