DmCheckConstraintAttribute ​
Namespace: MJCZone.DapperMatic.DataAnnotations
Assembly: MJCZone.DapperMatic
Summary ​
Attribute to define a check constraint.
Inheritance ​
Base Class: Attribute
sealed
public
Contents ​
Constructors (1) | Methods (6) | Properties (3)
Constructors ​
DmCheckConstraintAttribute ​
Initializes a new instance of the MJCZone.DapperMatic.DataAnnotations.DmCheckConstraintAttribute
class.
csharp
DmCheckConstraintAttribute(string expression, string constraintName)
Parameters ​
- expression (string) - The check constraint expression.
- constraintName (string) - The name of the check constraint.
Methods ​
Method | Summary |
---|---|
Equals | |
GetHashCode | |
Match | |
IsDefaultAttribute | |
GetType | |
ToString |
Equals ​
csharp
void Equals()
GetHashCode ​
csharp
void GetHashCode()
Match ​
csharp
void Match()
IsDefaultAttribute ​
csharp
void IsDefaultAttribute()
GetType ​
csharp
void GetType()
ToString ​
csharp
void ToString()
Properties ​
ConstraintName ​
Gets the name of the check constraint.
Type: string?
Expression ​
Gets the check constraint expression.
Type: string
TypeId ​
Type: object