I use Data Annotations in my ASP.NET MVC 3 project to validate the model. These are extremely convenient but currently they are magic to me. I read that data annotations do
How then does MVC know to add validation errors to the model state dictionary?
ModelValidatorProvider, more specifically, DataAnnotationsModelValidatorProvider. This is called by MVC.