Skip to main content
.NET 8.0+

NullableBehaviorAttribute.NullableBehavior Property

Gets a value indicating 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 NullableBehavior NullableBehavior { get; }

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

See Also