Implements the default model metadata provider for ASP.NET MVC.
Public Class DataAnnotationsModelMetadataProvider _ Inherits AssociatedMetadataProvider
public class DataAnnotationsModelMetadataProvider : AssociatedMetadataProvider
public ref class DataAnnotationsModelMetadataProvider : public AssociatedMetadataProvider
The DataAnnotationsModelMetadataProvider type exposes the following members.
The ModelMetadataProviders class sets this class as the default metadata provider for the MVC framework. You typically do not have to use this class directly. If you develop a custom attribute-based metadata provider, you can use this implementation as a guide.