Class SqlForeignKey
Represents an SQL foreign key constraint.
public abstract class SqlForeignKey : SqlConstraint, ISqlForeignKey, ISqlConstraint, ISqlObject
- Inheritance
-
SqlForeignKey
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
SqlForeignKey(SqlIndex, SqlIndex, SqlForeignKeyBuilder)
Creates a new SqlForeignKey instance.
protected SqlForeignKey(SqlIndex originIndex, SqlIndex referencedIndex, SqlForeignKeyBuilder builder)
Parameters
originIndexSqlIndexSQL index that this foreign key originates from.
referencedIndexSqlIndexSQL index referenced by this foreign key.
builderSqlForeignKeyBuilderSource builder.
Properties
OnDeleteBehavior
Specifies this foreign key's on delete behavior.
public ReferenceBehavior OnDeleteBehavior { get; }
Property Value
OnUpdateBehavior
Specifies this foreign key's on update behavior.
public ReferenceBehavior OnUpdateBehavior { get; }
Property Value
OriginIndex
SQL index that this foreign key originates from.
public SqlIndex OriginIndex { get; }
Property Value
ReferencedIndex
SQL index referenced by this foreign key.
public SqlIndex ReferencedIndex { get; }