Click or drag to resize

ApplicationUtils.CreateForeignKeyFieldName 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.7.0.0 (5.7.0)
Syntax
public static string CreateForeignKeyFieldName(
	IIdentifyingField pkField,
	string navigatorUsed,
	ProjectProperties properties
)

Parameters

pkField
Type: SD.LLBLGen.Pro.ApplicationCore.IIdentifyingField
The pk field.
navigatorUsed
Type: System.String
The navigator used.
properties
Type: SD.LLBLGen.Pro.ApplicationCore.ProjectClasses.ProjectProperties
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