The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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.v19.1.dll

Declaration

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