Click or drag to resize

ApplicationUtilsCreateForeignKeyFieldName Method

Creates the name of the foreign key field which will be referring the relatedField passed in. This name is not necessarily CLS compliant or unique. It does however create a name using the pattern set in the passed in properties.

Namespace:  SD.LLBLGen.Pro.ApplicationCore
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.4.0.0 (5.4.0)
Syntax
public static string CreateForeignKeyFieldName(
	IIdentifyingField pkField,
	string navigatorUsed,
	ProjectProperties properties
)

Parameters

pkField
Type: SD.LLBLGen.Pro.ApplicationCoreIIdentifyingField
The pk field.
navigatorUsed
Type: SystemString
The navigator used.
properties
Type: SD.LLBLGen.Pro.ApplicationCore.ProjectClassesProjectProperties
The properties.

Return Value

Type: String
A name for the foreign key field which has to be processed further (if it's not unique or not CLS compliant)
Remarks
returns "ILLEGAL" if relatedField is null.
See Also