Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

ColumnDefaultValueAttribute Class

Applied to persistent class’ fields or properties. Specifies the default value of the database column mapped to the target property/field.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

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

Remarks

The passed value is converted according to the current DBMS specifics and passed to the CREATE TABLE and ALTER TABLE statements when updating the database schema.

Inheritance

Object
Attribute
ColumnDefaultValueAttribute
See Also