c# - ODataProperties (System.Web.OData.Extensions - OData v4) Missing ''Model' Property -


i trying create instance of 'odataquerycontext' requires 'edmmodel' reference. attempting model odataproperties() method call off of httprequestmessage object.

var orderby = new orderbyqueryoption("columnname desc", new odataquerycontext(request.odataproperties().model, typeof(mytype)));

it seems if use namespace "using system.web.http.odata.extensions;" opposed "using system.web.odata.extensions;" model property available odataproperties(). however, using newer version (odata v4) namespaces, other references in program.

after doing research determined odata v4, moved '...web.http.odata...' namespaces, '...web.odata...' namespaces. assuming need consistent in using either new or old namespaces, , not successful attempting mix them.

does know how model property odataproperties() without using older 'web.http.odata' namespaces?

odataproperties().model odata on github


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -