Skip to main content
A newer version of this page is available. .

NullableBehaviorAttribute Class

Applied to persistent classes. Specifies if nullable columns should be created when updating the database schema for the target class.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v18.2.dll

Declaration

[AttributeUsage(AttributeTargets.Class, Inherited = true)]
public sealed class NullableBehaviorAttribute :
    Attribute

Remarks

Apply the NullableBehaviorAttribute to your persistent class declaration and pass one of the NullableBehavior enumeration values to the attribute.

You can change the behavior globally, use the static XpoDefault.NullableBehavior property. To change the behavior for a specific field of property, use the NullableAttribute.

Inheritance

Object
Attribute
NullableBehaviorAttribute
See Also