Click or drag to resize

ApplicationUtilsCreateUniqueElementName Method

Creates a unique name for an element mapped onto the target specified, using the name creator func specified. Pads created name with a padding counter till it's no longer present in the specified list of names in use. Optionally applies the ElementNamePrefixPattern, depending on the project properties.

Namespace:  SD.LLBLGen.Pro.ApplicationCore
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public static string CreateUniqueElementName(
	Func<IProjectElementMapTargetElement, string> nameCreatorFunc,
	HashSet<string> allNamesInUse,
	IProjectElementMapTargetElement target,
	string groupNameToUse,
	ProjectProperties properties,
	bool lowerCaseFullName,
	out string fullName
)

Parameters

nameCreatorFunc
Type: SystemFuncIProjectElementMapTargetElement, String
The name creator function.
allNamesInUse
Type: System.Collections.GenericHashSetString
All names in use currently by elements. Can be null, in which case no name checking is performed
target
Type: SD.LLBLGen.Pro.DBDriverCoreIProjectElementMapTargetElement
The target.
groupNameToUse
Type: SystemString
The group name to use.
properties
Type: SD.LLBLGen.Pro.ApplicationCore.ProjectClassesProjectProperties
The properties.
lowerCaseFullName
Type: SystemBoolean
if set to true the fullname string will be lowercased, otherwise it is left as-is.
fullName
Type: SystemString
The full name, which is the chosen prefix (group name depending on project settings) appended with the name to use lowercased

Return Value

Type: String
See Also