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 ​
DmForeignKeyConstraintAttribute()
Methods ​
Method | Summary |
---|---|
Equals | |
GetHashCode | |
Match | |
IsDefaultAttribute | |
GetType | |
ToString |
Equals ​
void Equals()
GetHashCode ​
void GetHashCode()
Match ​
void Match()
IsDefaultAttribute ​
void IsDefaultAttribute()
GetType ​
void GetType()
ToString ​
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