Freigeben über


Updates to URL syntax for December CTP of ADO.NET Data Services

This post talks a bit about updates from the last post on the URI format.

In that post, we discussed how we were considering having a "full form" and a "compressed form" for syntax. With the convergence of using ATOM and JSON as the serialization formats, we’ve been able to converge on the URI format as well and thus we no longer have both forms - we simply have the resource set name and a comma-separated list of key values in parents: /Customers('ALFKI')

The use of parens for values is a classic CSV-style design: a character to separate (,); a character to delimit the values so you can include the separator in them ('Lopez Ruiz, Marcelo','another string'), and a convention to double the delimiter to use it ('Marcelo''s World','Party time! Excellent!').

There are other types that don't really require delimiters, like dates, but because they come in handy when used in expressions on the query side of the string (after the '?'), we've kept them in the key portion as well. This way client libraries only need to deal with a single format. If this doesn't make much sense, wait a bit and I'll go into it in a post in the near future.

Everything else works pretty much as described in the post - feel free to post here or in the forums if you have any questions or want to provide feedback on this.

This post is part of the transparent design exercise in the Astoria Team. To understand how it works and how your feedback will be used please look at this post.

Comments

  • Anonymous
    January 08, 2008
    The comment has been removed

  • Anonymous
    January 09, 2008
    Pingback from http://oakleafblog.blogspot.com/2008/01/linq-and-entity-framework-posts-for.html

  • Anonymous
    January 10, 2008
    Let's say that we have a data service exposing all of Northwind. We can get all customers in the database

  • Anonymous
    January 10, 2008
    Let's say that we have a data service exposing all of Northwind. We can get all customers in the

  • Anonymous
    January 14, 2008
    We made few tweaks to our URI syntax to clean it up in the last CTP of ADO.NET Data Services. Marcelo

  • Anonymous
    January 15, 2008
    Michael Sync has written a sample using the new Astoria Silverlight client library. David Hayden posted

  • Anonymous
    January 15, 2008
    Michael Sync has written a sample using the new Astoria Silverlight client library. David Hayden posted

  • Anonymous
    January 21, 2008
    There are a whole bunch of interesting posts / stuff I find on the net that I bookmark on del.icio.us