HyperActive
CreateForeignKey Method (classDeclaration, foreignKey)
NamespacesHyperActive.Core.GeneratorsActiveRecordGeneratorCreateForeignKey(ClassDeclaration, ForeignKeyColumnSchema)
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.
Declaration Syntax
C#Visual BasicVisual 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
Parameters
classDeclaration (ClassDeclaration)
The class to which the property is added.
foreignKey (ForeignKeyColumnSchema)
The foreign key the property represents.
Return Value
The foreign key property that was added.

Assembly: HyperActive (Module: HyperActive) Version: 1.3.1.9 (1.3.1.9)