1

Closed

Set ValidationContext.MemberName

description

When implementing a custom ValidationAttribute, the ValidationContext passed to IsValid does not have the MemberName property set.

Solution would be to set the MemberName from the ModelMetadata.PropertyName at the same time the DisplayName is set.
Closed Jan 20 at 9:32 PM by kichalla
Verified.

comments

pranavkm wrote Jan 9 at 11:51 PM

Fixed in changeset 6c0de66e2235c60a053ec8352688c0318f940db2