Click or drag to resize

IEntityCoreSetEntityFieldError Method

Sets the error message for the field specified. If there's already a message stored for this field, it's overwritten unless append is set to true, which appends the message to the existing error using a semi-colon as separator. The message stored is returned by IDataErrorInfo[fieldName];

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
void SetEntityFieldError(
	string fieldName,
	string errorMessage,
	bool append
)

Parameters

fieldName
Type: SystemString
name of the field
errorMessage
Type: SystemString
message to store
append
Type: SystemBoolean
If true, the value is appended to an already existing error message. As separator a semi-colon is used.
See Also