FieldSchema
- Namespace:
PPDS.Migration.Models - Assembly:
PPDS.Migration - Kind: Class
Summary
Schema definition for a field.
Members
Properties
DateMode
DateMode DateMode { get; set; }
Gets or sets the date shifting mode for date/time fields.
DisplayName
string DisplayName { get; set; }
Gets or sets the field display name.
IsCustomField
bool IsCustomField { get; set; }
Gets or sets whether this is a custom field.
IsFileColumn
bool IsFileColumn { get; }
Gets whether this field is a file column type.
IsLookup
bool IsLookup { get; }
Gets whether this field is a lookup type.
IsPolymorphicLookup
bool IsPolymorphicLookup { get; }
Gets whether this is a polymorphic lookup (customer, owner).
IsPrimaryKey
bool IsPrimaryKey { get; set; }
Gets or sets whether this field is the primary key.
IsRequired
bool IsRequired { get; set; }
Gets or sets whether the field is required.
IsValidForCreate
bool IsValidForCreate { get; set; }
Gets or sets whether the field is valid for create operations. Default is true for backwards compatibility with existing schema files.
IsValidForUpdate
bool IsValidForUpdate { get; set; }
Gets or sets whether the field is valid for update operations. Default is true for backwards compatibility with existing schema files.
LogicalName
string LogicalName { get; set; }
Gets or sets the field logical name.
LookupEntity
string LookupEntity { get; set; }
Gets or sets the target entity for lookup fields.
MaxFileSizeKB
Nullable<int> MaxFileSizeKB { get; set; }
Gets or sets the maximum file size in KB for file columns.
MaxLength
Nullable<int> MaxLength { get; set; }
Gets or sets the maximum length for string fields.
Precision
Nullable<int> Precision { get; set; }
Gets or sets the precision for decimal/money fields.
Type
string Type { get; set; }
Gets or sets the field type (e.g., "string", "lookup", "datetime").