Table of Contents

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 int

An Int32 value specifying the ‘A’ part of the GUID value.

guidPartB short

An Int16 value specifying the ‘B’ part of the GUID value.

guidPartC short

An Int16 value specifying the ‘C’ part of the GUID value.

guidPartD byte

A Byte value specifying the ‘D’ part of the GUID value.

guidPartE byte

A Byte value specifying the ‘E’ part of the GUID value.

guidPartF byte

A Byte value specifying the ‘F’ part of the GUID value.

guidPartG byte

A Byte value specifying the ‘G’ part of the GUID value.

guidPartH byte

A Byte value specifying the ‘H’ part of the GUID value.

guidPartI byte

A Byte value specifying the ‘I’ part of the GUID value.

guidPartJ byte

A Byte value specifying the ‘J’ part of the GUID value.

guidPartK byte

A 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 int

An integer specifying the year part of the date-time value.

dateMonth int

An integer specifying the month part of the date-time value.

dateDay int

An integer specifying the day part of the date-time value.

dateHour int

An integer specifying the hour part of the date-time value.

dateMinute int

An integer specifying the minute part of the date-time value.

dateSecond int

An integer specifying the second part of the date-time value.

dateMillisecond int

An 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 object

An 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.