Thursday, May 5, 2016

Using Data Annotations in ASP.NET MVC Web Applications

If you use Data Annotations for your ASP.NET MVC Model or ViewModel classes, it is often difficult to remember exactly which Data Annotations are available to decorate your classes!

Well, fortunately, Microsoft has created an MSDN article covering many of the commonly available Data Annotations for use on your classes:


System.ComponentModel.DataAnnotations Namespace
https://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations%28v=vs.110%29.aspx


DataType Enumeration https://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.datatype%28v=vs.110%29.aspx




No comments:

Post a Comment