title: AssociatedMetadataProvider in ASP.NET Core
body: <p>Where I can find <strong>AssociatedMetadataProvider</strong> in .Net Core?
  Or is there a way to implement <strong>GetTypeDescriptor</strong> in DefaultModelMetadataProvider?</p>
  
  <p>In MVC 5 the DataAnnotationsModelMetadataProvider inherits from AssociatedMetadataProvider which had a method GetTypeDescriptor.</p>
  
  <p>It seems this class (AssociatedMetadataProvider ) was completly removed :-(</p>
  
  <p>Any advice would be very nice.</p>
  
  <hr>
  
  <p>How I did it in Mvc 5 ?</p>
  
  <pre><code>    public class CustomMetadataProvider : DataAnnotationsModelMetadataProvider
  {
      protected override ICustomTypeDescriptor GetTypeDescriptor(Type type)
      {
          if (WhatEver)
          { return new MyICustomTypeDescriptor();}
          return base.GetTypeDescriptor(type);
      }
  }
  </code></pre>
  
  <p>Registration:</p>
  
  <p>Global.asax</p>
  
  <pre><code> ModelMetadataProviders.Current = new CustomMetadataProvider();
  </code></pre>