Skip to content

Instantly share code, notes, and snippets.

@ODataTeam
Created September 15, 2014 06:52
Show Gist options
  • Save ODataTeam/5ad099b726c43169bbce to your computer and use it in GitHub Desktop.
Save ODataTeam/5ad099b726c43169bbce to your computer and use it in GitHub Desktop.
var parser = new ODataUriParser(
extModel.Model,
ServiceRoot,
new Uri("http://demo/odata.svc/GetColorCmykImport(col=TestNS.Color'Blue')"));
var path = parser.ParsePath();
var parser2 = new ODataUriParser(
extModel.Model,
ServiceRoot,
new Uri("http://demo/odata.svc/GetColorCmykImport(col='Blue')"))
{
Resolver = new StringAsEnumResolver { EnableCaseInsensitive = true }
};
// Identical to path
var path2 = parser2.ParsePath();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment