public
Created

  • Download Gist
gistfile1.cs
C#
1 2 3 4
IEdmModel model = EdmxReader.Parse(XmlReader.Create("http://services.odata.org/v3/odata/odata.svc/$metadata"));
IEdmEntityType product = model.FindDeclaredType("ODataDemo.Product") as IEdmEntityType;
var orderby = ODataUriParser.ParseOrderBy("ReleaseDate desc", model, product);
var filter = ODataUriParser.ParseFilter("ReleaseDate ge datetime'2012-11-19T00:00:00Z'", model, product);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.