HyperActive
CreateForeignKeyReference Method (classDecl, foreignKey)
NamespacesHyperActive.Core.GeneratorsActiveRecordGeneratorCreateForeignKeyReference(ClassDeclaration, ForeignKeyColumnSchema)
Creates a property that has many children that point to the primary key contained within this class. Typically these will have HasMany attributes.
Declaration Syntax
C#Visual BasicVisual 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
Parameters
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.
Return Value
The property that was added.

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