Back to Devexpress

NullableBehaviorAttribute.NullableBehavior Property

xpo-devexpress-dot-xpo-dot-nullablebehaviorattribute.md

latest1.6 KB
Original Source

NullableBehaviorAttribute.NullableBehavior Property

Gets a value indicating if nullable columns should be created when updating the database schema.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public NullableBehavior NullableBehavior { get; }
vb
Public ReadOnly Property NullableBehavior As NullableBehavior

Property Value

TypeDescription
NullableBehavior

A NullableBehavior enumeration value specifying if a nullable column should be created when updating the database schema.

|

Available values:

NameDescription
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.

|

See Also

NullableBehaviorAttribute Class

NullableBehaviorAttribute Members

DevExpress.Xpo Namespace