oData C# example code not compiling. Very basic -
i trying odata client work, using c# library simple.odata.client
as can seen @ http://www.odata.org/
var client = new odataclient("http://services.odata.org/v4/trippinservicerw/"); var people = await client.for<people>().findentriesasync(); these 2 lines supposed request resource server, can't compile this, "people isn't being recognized. have seen specific notation .for<people>() in several odata examples, no 1 ever explains or mentions "people" part.
what missing?
from getting started simple.odata.client, mentions that:
example of typed fluent api syntax (assuming there class package defined )
so, should define "people" clr class first, can use in sample code.
i tried out , works fine. can find sample project here
Comments
Post a Comment