Click or drag to resize

ApplicationUtilsCreateUniqueConstraintName Method (IProjectElementMapTargetElement, IEnumerableIProjectElementFieldMapTargetElement, ProjectProperties, String)

Creates the name of the unique constraint which follows from the field names, using the pattern specified in the specified 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 CreateUniqueConstraintName(
	IProjectElementMapTargetElement sourceTable,
	IEnumerable<IProjectElementFieldMapTargetElement> fields,
	ProjectProperties properties,
	string driverID
)

Parameters

sourceTable
Type: SD.LLBLGen.Pro.DBDriverCoreIProjectElementMapTargetElement
The source table.
fields
Type: System.Collections.GenericIEnumerableIProjectElementFieldMapTargetElement
The fields.
properties
Type: SD.LLBLGen.Pro.ApplicationCore.ProjectClassesProjectProperties
The properties.
driverID
Type: SystemString
The driver identifier.

Return Value

Type: String
A name to use for a new unique constraint which has to be processed further (it's not necessarily unique)
Remarks
Name is already processed with CreateMetaDataElementName
See Also