ApplicationUtilsCreateConstraintName Method |
Creates the name of a constraint which follows from the one or two tables specified, using the pattern specified in the specified properties.
Namespace: SD.LLBLGen.Pro.ApplicationCoreAssembly: SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.0.0.0 (5.0.0)
Syntax public static string CreateConstraintName(
IProjectElementMapTargetElement mainTable,
IProjectElementMapTargetElement additionalTable,
ProjectProperties properties,
string[] fieldNames,
string driverID,
string patternToUse
)
Public Shared Function CreateConstraintName (
mainTable As IProjectElementMapTargetElement,
additionalTable As IProjectElementMapTargetElement,
properties As ProjectProperties,
fieldNames As String(),
driverID As String,
patternToUse As String
) As String
Parameters
- mainTable
- Type: SD.LLBLGen.Pro.DBDriverCoreIProjectElementMapTargetElement
The main table, owning the constraint. - additionalTable
- Type: SD.LLBLGen.Pro.DBDriverCoreIProjectElementMapTargetElement
The additional table, referred to in the pattern, which is related to the constraint. Can be null - properties
- Type: SD.LLBLGen.Pro.ApplicationCore.ProjectClassesProjectProperties
The properties. - fieldNames
- Type: SystemString
The names of the fields in the constraint. - driverID
- Type: SystemString
The driver identifier. - patternToUse
- Type: SystemString
The pattern to use.
Return Value
Type:
String
A name to use for a new constraint which has to be processed further (it's not necessarily unique)
Remarks
Name is already processed with CreateMetaDataElementName
See Also