Top "Data-annotations" questions

Data Annotations are used by frameworks such as ASP.

Validate data using DataAnnotations with WPF & Entity Framework?

Is there any way to validate using DataAnnotations in WPF & Entity Framework?

.net wpf entity-framework validation data-annotations
DataAnnotations dynamically attaching attributes

Apparently it is possible to dynamically attach DataAnnotation attributes to object properties at runtime and as such achieve dynamic validation. …

asp.net-mvc data-annotations
Data Annotations for validation, at least one required field?

If I have a search object with a list of fields, can I, using the System.ComponentModel.DataAnnotations namespace, set …

asp.net asp.net-mvc validation asp.net-mvc-2 data-annotations
Mark a field "Read Only" with Data Annotations

I am trying to make the ID field read only. It is an Identity field in the DB so the …

c# .net telerik data-annotations
MVC Razor Validation Errors showing on page load when no data has been posted

I'm messing around with data annotations. When I click on a link to go to a page, the validation messages …

c# asp.net-mvc razor data-annotations asp.net-mvc-validation
localize data annotations default messages ([Required] [StringLength] etc.)

if I decorate the properties of my ViewModels with attributes like this: public class Vm { [Required] [StringLength(35)] public string Name {…

asp.net-mvc localization data-annotations
Data annotations MVC3 Required attribute

I have the Model (User) below, I use it to add new users and to update existing users. When I'm …

asp.net-mvc-3 model data-annotations modelstate
How can I set a RegularExpression data annotation's regular expression argument at runtime?

We manage several ASP.NET MVC client web sites, which all use a data annotation like the following to validate …

regex asp.net-mvc-3 validation dynamic data-annotations
WPF Binding : Use DataAnnotations for ValidationRules

I have read a lot of Blog post on WPF Validation and on DataAnnotations. I was wondering if there is …

wpf binding data-annotations validationrules
DataAnnotations - Disallow Numbers, or only allow given strings

Is it possible to use ASP.NET MVC 2's DataAnnotations to only allow characters (no number), or even provide a …

c# asp.net-mvc validation asp.net-mvc-2 data-annotations