Show / Hide Table of Contents

Class DefaultValueAttribute

Specifies the default value for the column.

Inheritance
System.Object
System.Attribute
ColumnAttribute
DefaultValueAttribute
Inherited Members
ColumnAttribute.DeclaringType
ColumnAttribute.DeclaringTypeOnly
ColumnAttribute.CoerceDeclaringTypeOnly(Boolean)
System.Attribute.Equals(System.Object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.TypeId
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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)
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest