Class ColumnDbDefaultValueAttribute
- Namespace
- DevExpress.Xpo
- Assembly
- DevExpress.Xpo.v24.1.dll
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.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true)]
public sealed class ColumnDbDefaultValueAttribute : Attribute
- Inheritance
-
ColumnDbDefaultValueAttribute
- Inherited Members
Constructors
ColumnDbDefaultValueAttribute(string)
Initializes a new instance of the ColumnDbDefaultValueAttribute class.
public ColumnDbDefaultValueAttribute(string dbDefaultValue)
Parameters
dbDefaultValue
stringA string specifying the default value of the database column mapped to the target property/field.
Properties
DbDefaultValue
Specifies the default value of the database column mapped to the target property/field.
public string DbDefaultValue { get; set; }
Property Value
- string
A string specifying the default value of the database column mapped to the target property/field.