XPDictionary.NullableBehavior Property
Specifies if nullable columns should be created when updating the database schema.
Namespace: DevExpress.Xpo.Metadata
Assembly: DevExpress.Xpo.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
NullableBehavior | A NullableBehavior enumeration value specifying if a nullable column should be created when updating the database schema. |
Available values:
Name | Description |
---|---|
Default | The default mode. Has the same effect as AlwaysAllowNulls. |
AlwaysAllowNulls | A nullable column is always created. |
ByUnderlyingType | A nullable column is created when the mapped property type is not a value type. |
Remarks
The default NullableBehavior value is taken from the static XpoDefault.NullableBehavior property value.
The NullableBehavior value can be overridden for an individual persistent class of field using the:
- NullableAttribute attribute;
- NullableBehaviorAttribute attribute;
- XPClassInfo.NullableBehavior property.
See Also