I have created string to linq query library for internal company needs. We will use this library for querying over REST mainly, but it could be used in a lot of other different situations.
The gist of it is this, a user can create a query and put it in a url like this:
but they could also write something like this
$last returns a single object, while
$orderby[Name,-Id] returns a collection
In the library I have a method that will accept that string and accordingly will produce a collection or a single object, I am just not sure if that method should return a type of
Which is more suitable, which one's going to be less confusing for other devs?
Also, I'm thinking of releasing this lib as open source, but I don't know if there is a need for something like this to get released.