Class FieldAttribute
- Namespace
- Typhon.Schema.Definition
- Assembly
- Typhon.Schema.Definition.dll
Overrides the schema identity of a component field. Optional — an unannotated field is still a schema field, keyed by its C# name with an auto-assigned id.
[AttributeUsage(AttributeTargets.Field)]
public sealed class FieldAttribute : Attribute
- Inheritance
-
FieldAttribute
- Inherited Members
Constructors
FieldAttribute()
public FieldAttribute()
Properties
FieldId
Explicit stable identifier for this field, persisted and used to match fields across schema revisions. null lets the schema assign the next free
id, resolving the field against the persisted schema by Name then PreviousName.
public int? FieldId { get; set; }
Property Value
- int?
Name
Overrides the persisted field name (defaults to the C# field name). Used as the schema-match key when the database is reopened.
public string Name { get; set; }
Property Value
PreviousName
Former Name of this field, set when it is renamed so the persisted field can be matched and carried forward. null when never renamed.
public string PreviousName { get; set; }