Constructor UniqueConstraintAttribute
| Improve this Doc View SourceUniqueConstraintAttribute(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. |
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. |
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. |