Show / Hide Table of Contents

Constructor UniqueConstraintAttribute

| Improve this Doc View Source

UniqueConstraintAttribute(String)

Initializes a new instance of UniqueConstraintAttribute.

Declaration
public UniqueConstraintAttribute(string name)
Parameters
Type Name Description
System.String name

The name of the unique constraint.

| Improve this Doc View Source

UniqueConstraintAttribute(String, String)

Initializes a new instance of UniqueConstraintAttribute with error message.

Declaration
public UniqueConstraintAttribute(string name, string message)
Parameters
Type Name Description
System.String name

The name of the unique constraint.

System.String message

The error message for validation.

| Improve this Doc View Source

UniqueConstraintAttribute(String, Type, String)

Initializes a new instance of UniqueConstraintAttribute with localized error message.

Declaration
public UniqueConstraintAttribute(string name, Type messageResourceType, string message)
Parameters
Type Name Description
System.String name

The name of the unique constraint.

System.Type messageResourceType

The resource type of the localized error message.

System.String message

The property to retrieve the localized error message.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest