Appearance
CreateForeignKey Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Constraint CreateForeignKey(string constrainedTable, string constrainedSchema, IForeignKey foreignKey)
csharp
Constraint CreateForeignKey(string constrainedTable, string constrainedSchema, IForeignKey foreignKey)Creates a FOREIGN KEY constraint for the given table using foreignKey.
Parameters
| Name | Description |
|---|---|
constrainedSchema | Schema of the constrained table. |
constrainedTable | Table that owns the constrained column. |
foreignKey | Foreign-key definition (column, reference, optional name and actions). |
Returns
A constraint ready for AddConstraint or DDL generation.