This project has moved and is read-only. For the latest updates, please go here.
1

Closed

Allow passing string to Where

description

But I want some API like:
var moviesTable = ctx.GetTable<Movie>();
var inceptionMovie = moviesTable.Where(string querystring);
where I can pass a string directly to where.

I have a ASP.NET Web API OData site that allows user to query. I want to pass the $filter string directly here to simplify the process. Currently I have to write code to parse it and manually create query.

Or you may want to add OData support since OData has limited query options -- it doesn't support full LINQ. This should make the life here easier. So here I want to see something like:
var inceptionMovie = moviesTable.Where(ODataQueryOptions queryoptions);
Closed Oct 29, 2014 at 9:09 AM by scale_tone
No response from author :(

comments

scale_tone wrote Aug 8, 2014 at 10:29 AM

Linq2DynamoDb itself supports OData. With a few steps described here you can expose your DynamoDb Table as an OData-endpoint. Then you can send OData queries with $filter keyword to that endpoint and get results. Your query will be automatically translated into a LINQ expression and then into DynamoDb GET/QUERY/SCAN operation.

Isn't that what you really need? :)

wrote Oct 29, 2014 at 9:09 AM