Skip to main content

DataLayerOptions.NullableBehavior Property

Namespace: Microsoft.Extensions.DependencyInjection

Assembly: DevExpress.Xpo.v24.2.dll

NuGet Package: DevExpress.Xpo

#Declaration

public NullableBehavior NullableBehavior { get; set; }

#Property Value

Type
NullableBehavior

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.

#Property Paths

You can access this nested property as listed below:

Object Type Path to NullableBehavior
DataLayerOptionsBuilder
.DataLayerOptions .NullableBehavior
See Also