I am quite new on mvc3 and have some basic and ridiculous questions that I couldn’t answer myself browsing hundreds of blogs. Most of the blogs and tutorials talk about data validation using annotations for EF4.1 code first, but I created the model first, and from there the database. I haven’t use any custom T4. So, the question is, how do I validate that all fields in my model are correct when the using is entering them int the form? Basically need to understand how to use validate the properties from the model and from the client. This question is more for some experts to guide me where to start with it.
Thanks all!
The Data annotations that you are reading about with code first should still apply just fine. Using data annotation attributes such as [Required()] will be the route you want to go.