Creates a property that has many children that point to the primary key contained within this class. Typically these will have HasMany attributes.
| C# | Visual Basic | Visual C++ |
protected abstract PropertyDeclaration CreateForeignKeyReference( ClassDeclaration classDecl, ForeignKeyColumnSchema foreignKey )
Protected MustOverride Function CreateForeignKeyReference ( _ classDecl As ClassDeclaration, _ foreignKey As ForeignKeyColumnSchema _ ) As PropertyDeclaration
protected: virtual PropertyDeclaration^ CreateForeignKeyReference( ClassDeclaration^ classDecl, ForeignKeyColumnSchema^ foreignKey ) abstract
- classDecl (ClassDeclaration)
- The class to which the property is added.
- foreignKey (ForeignKeyColumnSchema)
- The foreign key in the table that references the primary key in this class.
The property that was added.