Data Annotations are used by frameworks such as ASP.
I am using Data Annotations for Model validation in MVC4 and am currently using the StringLengthAttribute however i do NOT …
asp.net-mvc asp.net-mvc-4 data-annotations minimum string-lengthI'm using this code on an email field: [Required] [DataType(DataType.EmailAddress)] [Display(Name = "Email address")] public string Email { get; …
asp.net-mvc asp.net-mvc-3 data-annotationsHas anyone seen an MVC3 data annotation for Date validation that requires a single selected date to be equal to …
asp.net-mvc-3 datetime data-annotationsI'm using System.ComponentModel.DataAnnotations to provide validation for my Entity Framework 4.1 project. For example: public class Player { [Required] [MaxLength(30)] […
c# entity-framework-4.1 data-annotationsWhat is the default, valid format of the [Phone] attribute? In the data table, the phone column is navrchar (16) If …
c# regex asp.net-mvc validation data-annotationsI've got a view model like this: public class SignUpViewModel { [Required(ErrorMessage = "Bitte lesen und akzeptieren Sie die AGB.")] [DisplayName("…
asp.net-mvc validation checkbox data-annotationsI have a POCO with a decimal property called SizeUS. I would like to use data annotations to format the …
c# asp.net-mvc data-annotations pocoI have the following code: [DisplayName("58.Date and hour of birth")] [DataType(DataType.DateTime, ErrorMessage = "Please enter a valid date …
asp.net-mvc datetime data-annotationsHow is the best way to validate a model in MVC.Net where I want to accept a minimum/maximum. …
c# asp.net-mvc asp.net-mvc-3 model data-annotationsSince now I've used the excellent FluentValidation library to validate my model classes. In web applications I use it in …
validation .net-3.5 asp.net-mvc-2 data-annotations