Class ColumnDefaultValueAttribute
- Namespace
- DevExpress.Xpo
- Assembly
- DevExpress.Xpo.v24.1.dll
Applied to persistent class’ fields or properties. Specifies the default value of the database column mapped to the target property/field.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true)]
public sealed class ColumnDefaultValueAttribute : Attribute
- Inheritance
-
ColumnDefaultValueAttribute
- Inherited Members
Constructors
ColumnDefaultValueAttribute(int, short, short, byte, byte, byte, byte, byte, byte, byte, byte)
Initializes a new instance of the ColumnDefaultValueAttribute class.
public ColumnDefaultValueAttribute(int guidPartA, short guidPartB, short guidPartC, byte guidPartD, byte guidPartE, byte guidPartF, byte guidPartG, byte guidPartH, byte guidPartI, byte guidPartJ, byte guidPartK)
Parameters
guidPartA
intAn Int32 value specifying the ‘A’ part of the GUID value.
guidPartB
shortAn Int16 value specifying the ‘B’ part of the GUID value.
guidPartC
shortAn Int16 value specifying the ‘C’ part of the GUID value.
guidPartD
byteA Byte value specifying the ‘D’ part of the GUID value.
guidPartE
byteA Byte value specifying the ‘E’ part of the GUID value.
guidPartF
byteA Byte value specifying the ‘F’ part of the GUID value.
guidPartG
byteA Byte value specifying the ‘G’ part of the GUID value.
guidPartH
byteA Byte value specifying the ‘H’ part of the GUID value.
guidPartI
byteA Byte value specifying the ‘I’ part of the GUID value.
guidPartJ
byteA Byte value specifying the ‘J’ part of the GUID value.
guidPartK
byteA Byte value specifying the ‘K’ part of the GUID value.
ColumnDefaultValueAttribute(int, int, int, int, int, int, int)
Initializes a new instance of the ColumnDefaultValueAttribute class.
public ColumnDefaultValueAttribute(int dateYear, int dateMonth, int dateDay, int dateHour, int dateMinute, int dateSecond, int dateMillisecond)
Parameters
dateYear
intAn integer specifying the year part of the date-time value.
dateMonth
intAn integer specifying the month part of the date-time value.
dateDay
intAn integer specifying the day part of the date-time value.
dateHour
intAn integer specifying the hour part of the date-time value.
dateMinute
intAn integer specifying the minute part of the date-time value.
dateSecond
intAn integer specifying the second part of the date-time value.
dateMillisecond
intAn integer specifying the millisecond part of the date-time value.
ColumnDefaultValueAttribute(object)
Initializes a new instance of the ColumnDefaultValueAttribute class.
public ColumnDefaultValueAttribute(object defaultValue)
Parameters
defaultValue
objectAn object specifying the default value of the database column mapped to the target property/field.
Properties
DefaultValue
Specifies the default value of the database column mapped to the target property/field.
public object DefaultValue { get; set; }
Property Value
- object
An object specifying the default value of the database column mapped to the target property/field.