Click or drag to resize

EntityModelNameValidatorValidateNewEntityModelElementName Method

Validates whether the name specified is a valid name for a new element in the entity model.

Namespace:  SD.LLBLGen.Pro.ApplicationCore.EntityModel.Validation
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
public bool ValidateNewEntityModelElementName(
	string newName,
	string groupName,
	bool nameOnly,
	out string errorText,
	out string correctName
)

Parameters

newName
Type: SystemString
The new name.
groupName
Type: SystemString
Name of the group.
nameOnly
Type: SystemBoolean
if set to true, only the name is validated, group is ignored. If false, the group is validated and the name is verified in the group as well.
errorText
Type: SystemString
The error text.
correctName
Type: SystemString
Corrected value for name rules, this is the correct name for 'newName'.

Return Value

Type: Boolean
true if valid, false otherwise
See Also