title: how do I define multiple model classes inside ODataModelBuilder
body: <p>I have one <code>OData v4 Endpoint Using ASP.NET Web API</code> which is having two separate models</p>
  
  <p>ModelVer1.Customer.cs</p>
  
  <pre><code>int ID;
  string Name;
  </code></pre>
  
  <p>ModelVer2.Customer.cs</p>
  
  <pre><code>int ID;
  string Name;
  string Address;
  </code></pre>
  
  <p>webapiconfig.cs</p>
  
  <pre><code>  public static void Register(HttpConfiguration config)
          {
              config.MapHttpAttributeRoutes();
              ODataModelBuilder builder = new ODataConventionModelBuilder();
              builder.EntitySet&lt;ModelVer1.Customer&gt;("Customers");
            // If I use below get error:
            // The entity set 'Customers' was already configured with a different EntityType ('Customer'). Parameter name: entityType
              builder.EntitySet&lt;ModelVer2.Customer&gt;("Customers");
  
  
              config.MapODataServiceRoute(
                  routeName: "ODataRoute",
                  routePrefix: "demo/api",
                  model: builder.GetEdmModel());
  
  
              config.Services.Replace(typeof(IHttpControllerSelector), new CustomControllerSelector(config));
  
  
          }
  </code></pre>
  
  <p>But getting error : </p>
  
  <blockquote>
    <p>The entity set 'Customers' was already configured with a different
    EntityType ('Customer').
                     Parameter name: entityType</p>
  </blockquote>
  
  <p>What should be done?</p>
  
  <blockquote>
    <p>I guess i need to do something like <code>model: builder.GetEdmModel()</code>
    need to generate this model dynamically which gets all entity model
    classes like ModelVersion1.Customer and ModelVersion2.Customer</p>
  </blockquote>