Back to Devexpress

ColumnDbDefaultValueAttribute Class

xpo-devexpress-dot-xpo-b452f703.md

latest1.4 KB
Original Source

ColumnDbDefaultValueAttribute Class

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

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

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

Remarks

Pass an SQL expression to this attribute. The expression is then passed to the CREATE TABLE and ALTER TABLE statements when updating the database schema.

Inheritance

Object Attribute ColumnDbDefaultValueAttribute

See Also

ColumnDbDefaultValueAttribute Members

DevExpress.Xpo Namespace