The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

NullableAttribute Class

Applies to persistent class' fields or properties. Specifies if a nullable column should be created when updating the database schema for the target property/field.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, Inherited = true)]
public sealed class NullableAttribute : Attribute
<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field, Inherited:=True)>
Public NotInheritable Class NullableAttribute
    Inherits Attribute
    Implements
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, Inherited = true)]
public sealed class NullableAttribute : Attribute
<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field, Inherited:=True)>
Public NotInheritable Class NullableAttribute
    Inherits Attribute
    Implements

Remarks

To change the NullableAttribute value for the entire persistent class, apply the NullableBehaviorAttribute instead. To change this setting globally, use the static XpoDefault.NullableBehavior property.

The NullableAttribute does not apply to persistent objects' reference type properties. XPO uses these properties as foreign keys and creates NULL columns for this type. You cannot change this behavior.

See Nullable Behavior and Nullable Columns for more information.

Inheritance

Object
Attribute
NullableAttribute

Implements

See Also