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.10.0.0 (5.10.0)
Syntax public bool ValidateNewEntityModelElementName(
string newName,
string groupName,
bool nameOnly,
out string errorText,
out string correctName
)
Public Function ValidateNewEntityModelElementName (
newName As String,
groupName As String,
nameOnly As Boolean,
<OutAttribute> ByRef errorText As String,
<OutAttribute> ByRef correctName As String
) As Boolean
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:
Booleantrue if valid, false otherwise
See Also