Click or drag to resize

EntityCoreTFieldsSetEntityFieldError 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.8.0.0 (5.8.21.0111)
Syntax
public virtual void SetEntityFieldError(
	string fieldName,
	string errorMessage,
	bool append
)

Parameters

fieldName
Type: SystemString
name of the field
errorMessage
Type: SystemString
message to store. If it's an empty string, an existing error message for fieldName is cleared instead
append
Type: SystemBoolean
If true, the value is appended to an already existing error message. As separator a semi-colon is used.

Implements

IEntityCoreSetEntityFieldError(String, String, Boolean)
See Also