Similar to the WCF Type Reuse where you can have contracts in a class library that are used by the server and the client, I'd like to do this for my OData model classes. I would also like to have a helper class and method in this Model class library that creates the IEdmModel using ODataConventionModelBuilder.
Since ODataConventionModelBuilder is in System.Web.Http.OData, this adds a whole list of dependencies to my Model library (System.Net.Http and others) that I'd rather it not have.
Some of the names might be wrong here, I'm going based on NuGet package names and assembly names that don't always line up, but the general idea is that it would be nice to have one shared method that generates my IEdmModel that I can use on both my client and server, without adding additional dependencies the client doesn't really need.
Since ODataConventionModelBuilder is in System.Web.Http.OData, this adds a whole list of dependencies to my Model library (System.Net.Http and others) that I'd rather it not have.
Some of the names might be wrong here, I'm going based on NuGet package names and assembly names that don't always line up, but the general idea is that it would be nice to have one shared method that generates my IEdmModel that I can use on both my client and server, without adding additional dependencies the client doesn't really need.