I'm building an OWIN self-hosted Web API 2 service. I need for this service to expose OData end points.
The traditional IIS-hosted method involves App_Start/WebApiConfig.cs:
using ProductService.Models;
using System.Web.OData.Builder;
using System.Web.OData.Extensions;
public static class WebApiConfig
{
    public static void Register(HttpConfiguration config)
    {
        // New code:
        ODataModelBuilder builder = new ODataConventionModelBuilder();
        builder.EntitySet<Product>("Products");
        config.MapODataServiceRoute(
            routeName: "ODataRoute",
            routePrefix: null,
            model: builder.GetEdmModel());
    }
}
However, in my self-hosted solution there is no such thing as WebApiConfig.cs
Where and how can I specify this OData configuration?
 
     
    