The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v18.2.dll

Declaration

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

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

Implements

See Also