Show / Hide Table of Contents

Class UniqueConstraintAttribute

Specifies the unique constraint.

Inheritance
System.Object
System.Attribute
ModelAttribute
ModelDeclarationAttribute
DbIndexBaseAttribute
UniqueConstraintAttribute
Implements
IValidatorAttribute
Inherited Members
DbIndexBaseAttribute.DbName
DbIndexBaseAttribute.Initialize()
DbIndexBaseAttribute.WireupEvent
DbIndexBaseAttribute.Wireup(Model)
DbIndexBaseAttribute.IsCluster
ModelDeclarationAttribute.Name
ModelDeclarationAttribute.Description
ModelDeclarationAttribute.GetPropertyGetter(Type)
ModelDeclarationAttribute.GetMethodInfo(Type[], Type)
ModelAttribute.ModelType
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
[CrossReference(typeof(_UniqueConstraintAttribute))]
[ModelDeclarationSpec(true, typeof(ColumnSort[]), new Type[]{})]
public sealed class UniqueConstraintAttribute : DbIndexBaseAttribute, IValidatorAttribute

Constructors

Name Description
UniqueConstraintAttribute(String)

Initializes a new instance of UniqueConstraintAttribute.

UniqueConstraintAttribute(String, String)

Initializes a new instance of UniqueConstraintAttribute with error message.

UniqueConstraintAttribute(String, Type, String)

Initializes a new instance of UniqueConstraintAttribute with localized error message.

Properties

Name Description
Message

Gets the error message for validation.

ResourceType

Gets the resource type for localized error message.

Methods

Name Description
Wireup(Model, String, ColumnSort[])
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest