ivalidatableobject Questions
9
Solved
I understand that IValidatableObject is used to validate an object in a way that lets one compare properties against each other.
I'd still like to have attributes to validate individual properties,...
Korman asked 3/8, 2010 at 20:32
3
Solved
I am developing a website built on EntityFrameworkCore and targeting ASP.NET Core 2.1. I want to specify an error message for an enum field in my model like so:
[Required(ErrorMessage = "Select an...
Padget asked 31/10, 2018 at 21:42
0
I tried to implement IValidatableObject on my Razor Page model in ASPNET Core 2.
I was surprised that the Validate method was not invoked. Moving all [BindableProperty]s to a new type implementing ...
Angel asked 17/10, 2018 at 12:50
2
Solved
I have implemented IValidatableObject several times and have never found out what the purpose of parsing ValidationContext to the Validate method is - my typical IValidatableObject implementation l...
Adenovirus asked 19/3, 2013 at 12:2
1
Solved
I have a test class with a couple tests that check to see if the entity IsValid. I moved to using IValidatableObject from having my own custom validation but I'm stuck with the correct validation t...
Enyo asked 1/9, 2012 at 12:0
1
Solved
I've a ViewModel which has some DataAnnotations validations and then for more complex validations implements IValidatableObject and uses Validate method.
The behavior I was expecting was this one:...
Ruminant asked 16/11, 2011 at 14:51
2
Currently my business objects implement IDataErrorInfo. Since I intend to use these libraries in ASP.NET MVC 3, I figure I should implement IValidatableObject as well or maybe instead of.
Does WP...
Sholley asked 20/11, 2010 at 17:8
1
© 2022 - 2024 — McMap. All rights reserved.