Skip to content

DmForeignKeyConstraintAttribute ​

Namespace: MJCZone.DapperMatic.DataAnnotations

Assembly: MJCZone.DapperMatic

Summary ​

Attribute to define foreign key constraints on a class or property.

Inheritance ​

Base Class: Attribute

sealed public

Contents ​

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

Constructors ​

DmForeignKeyConstraintAttribute ​

csharp
DmForeignKeyConstraintAttribute()

Methods ​

MethodSummary
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 foreign key constraint.

Type: string?

SourceColumnNames ​

Gets the names of the source columns in the foreign key constraint.

Type: string[]?

ReferencedType ​

Gets the type of the referenced entity in the foreign key constraint.

Type: Type?

ReferencedTableName ​

Gets the name of the reference table in the foreign key constraint.

Type: string?

ReferencedColumnNames ​

Gets the names of the referenced columns in the foreign key constraint.

Type: string[]?

OnDelete ​

Gets the action to take when a referenced row is deleted.

Type: DmForeignKeyAction?

OnUpdate ​

Gets the action to take when a referenced row is updated.

Type: DmForeignKeyAction?

TypeId ​

Type: object