Skip to content

DmDefaultConstraintAttribute

Namespace: MJCZone.DapperMatic.DataAnnotations

Assembly: MJCZone.DapperMatic

Summary

Attribute to define a default constraint on a property.

Inheritance

Base Class: Attribute

sealed public

Contents

Constructors (1) | Methods (6) | Properties (3)

Constructors

DmDefaultConstraintAttribute

Initializes a new instance of the DmDefaultConstraintAttribute class.

csharp
DmDefaultConstraintAttribute(string expression, string constraintName)

Parameters

  • expression (string) - The default value expression.
  • constraintName (string) - The name of the constraint.

Methods

MethodSummary
Equals
GetHashCode
Match
IsDefaultAttribute
GetType
ToString

Equals

csharp
Equals()

GetHashCode

csharp
GetHashCode()

Match

csharp
Match()

IsDefaultAttribute

csharp
IsDefaultAttribute()

GetType

csharp
GetType()

ToString

csharp
ToString()

Properties

ConstraintName

Gets the name of the constraint.

Type: string?

Expression

Gets the default value expression.

Type: string

TypeId

Type: object