Table of Contents

Class NullableAttribute

Namespace
DevExpress.Xpo
Assembly
DevExpress.Xpo.v24.1.dll

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.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true)]
public sealed class NullableAttribute : Attribute
Inheritance
NullableAttribute
Inherited Members

Constructors

NullableAttribute(bool)

Initializes a new instance of the NullableAttribute class.

public NullableAttribute(bool isNullable)

Parameters

isNullable bool

true, if a nullable column is created, otherwise, false.

Properties

IsNullable

Specifies if a nullable column should be created when updating the database schema for the persistent class member described by the current NullableAttribute object.

public bool IsNullable { get; set; }

Property Value

bool

true, if a nullable column is created, otherwise, false.