Appearance
ColumnDeclarationMode Enum
Specifies how column definitions are determined when building TableInfo from a class. Enforced in JASE.Database.SqlGenerators.SqlGeneratorBase.GenerateColumnInfo(System.Reflection.PropertyInfo,JASE.Database.NamingStrategy,System.Boolean,JASE.Database.ColumnDeclarationMode).
Namespace: JASE.Database
Assembly: JASE.Database.dll
Underlying Type int
Fields
| Name | Value | Description |
|---|---|---|
PreferAttribute | 1 | Uses ColumnInfoAttribute (and subclasses) when present; otherwise CLR type and data annotations. Default behavior. |
AttributeOnly | 2 | Every mapped property must declare a ColumnInfoAttribute or subclass (ColumnNumericAttribute, ColumnCharacterAttribute, etc.). |
InferenceOnly | 4 | Ignores all ColumnInfoAttribute subclasses. Columns are built from CLR types and data annotations only. |
Remarks
Within a mode, metadata layers apply in order: CLR inference, then data annotations (unless IgnoreDataAnnotations is true), then Column* attributes when allowed. Column* always wins over data annotations when both apply.
IgnoreDataAnnotations does not disable Column* attributes; use InferenceOnly for that.