Class DefaultValueAttribute
Specifies the default value for the column.
Inherited Members
Namespace: DevZest.Data.Annotations
Assembly: DevZest.Data.dll
Syntax
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
[ModelDesignerSpec(new Type[]{typeof(ColumnDefault)}, new Type[]{typeof(Column)})]
public sealed class DefaultValueAttribute : ColumnAttribute
Constructors
Name | Description |
---|---|
DefaultValueAttribute(Boolean) | Initializes a new instance of DefaultValueAttribute using a System.Boolean value. |
DefaultValueAttribute(Byte) | Initializes a new instance of DefaultValueAttribute using a System.Byte value. |
DefaultValueAttribute(Char) | Initializes a new instance of DefaultValueAttribute using a System.Char value. |
DefaultValueAttribute(Double) | Initializes a new instance of DefaultValueAttribute using a System.Double value. |
DefaultValueAttribute(Int16) | Initializes a new instance of DefaultValueAttribute using a System.Int16 value. |
DefaultValueAttribute(Int32) | Initializes a new instance of DefaultValueAttribute using a System.Int32 value. |
DefaultValueAttribute(Int64) | Initializes a new instance of DefaultValueAttribute using a System.Int64 value. |
DefaultValueAttribute(Single) | Initializes a new instance of DefaultValueAttribute using a System.Single value. |
DefaultValueAttribute(String) | Initializes a new instance of DefaultValueAttribute using a System.String value. |
DefaultValueAttribute(Type, String) | Initializes a new instance of DefaultValueAttribute, converting the specified value to the specified type, and using an invariant culture as the translation context. |
Properties
Name | Description |
---|---|
Description | Gets or sets the description of the default value declaration. |
Name | Gets or sets the name of default value declaration. |
Methods
Name | Description |
---|---|
Wireup(Column) |