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
Equals()

GetHashCode

csharp
GetHashCode()

Match

csharp
Match()

IsDefaultAttribute

csharp
IsDefaultAttribute()

GetType

csharp
GetType()

ToString

csharp
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