Creates a property that is a foreign key within the current table that points to a primary key in another table. These typically have BelongsTo attributes.
| C# | Visual Basic | Visual C++ |
protected abstract PropertyDeclaration CreateForeignKey( ClassDeclaration classDeclaration, ForeignKeyColumnSchema foreignKey )
Protected MustOverride Function CreateForeignKey ( _ classDeclaration As ClassDeclaration, _ foreignKey As ForeignKeyColumnSchema _ ) As PropertyDeclaration
protected: virtual PropertyDeclaration^ CreateForeignKey( ClassDeclaration^ classDeclaration, ForeignKeyColumnSchema^ foreignKey ) abstract
- classDeclaration (ClassDeclaration)
- The class to which the property is added.
- foreignKey (ForeignKeyColumnSchema)
- The foreign key the property represents.
The foreign key property that was added.