XpoDefault.NullableBehavior Property
Specifies if nullable columns should be created when updating the database schema.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public static NullableBehavior NullableBehavior { get; set; }
#Property Value
Type | Description |
---|---|
Nullable |
A Nullable |
Available values:
Name | Description |
---|---|
Default | The default mode. Has the same effect as Always |
Always |
A nullable column is always created. |
By |
A nullable column is created when the mapped property type is not a value type. |
#Remarks
This global setting can be overridden for an individual persistent class of a field using the:
- NullableAttribute attribute;
- NullableBehaviorAttribute attribute;
- XPDictionary.NullableBehavior property.
- XPClassInfo.NullableBehavior property.