title: What is the right way to enable odata controller in asp.net core?
body: <p>There is no <code>HttpConfiguration</code> accessible, so I can't use this code.</p>
  
  <pre><code>        config.MapHttpAttributeRoutes();
  
          var builder = new ODataConventionModelBuilder();
          builder.EntitySet&lt;Client&gt;("clients");
  
          config.Routes.MapODataServiceRoute("ODataRoute", "odata", builder.GetEdmModel());
  </code></pre>
  
  <p>What is the right way to enable odata controllers in asp.net core?  </p>