Exposing entities via a nHibernate implementation RIA Services with querystring queries
- by illdev
I once read a blog post and cannot find it anymore. drat!
It was about a guy who setup a wcf service (I guess RIA, but could have been something else) exposing the model via IQueryable to the querystring.
Sou you could say
http://host/articles/123/ratings
and you'd get a list (soap or json) of serialized Rating entities (the properties which had some attribute attached) which pertained to an article with id 123.
All this with nHibernate / nh linq in the back and in surprisingly few lines of code.
Anyone knows what I am talking about? Experiences, suggestions?