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

Error with Lambda expressions

Dec 28, 2013 at 8:59 PM
I am trying to create a Lambda expression in order to get some registers from the database with Lucifure, connected to Azure Tables

return _lucifureClient.CreateQuery().Where(x => x.resourceName.Contains(fileName) && x.ownerId == userId).ToList();

When I reach that line, it throws an InvalidOperationException, and the error message is the following:
variable 'x' of type 'CloudifydModel.Model.CloudResource' referenced from scope '', but it is not defined

I tried the same Lambda expression with a list of objects and it works perfectly, but when I try the same Lambda expression in order to get a query from Lucifure, I get that error

Do you know what is happening?
Dec 28, 2013 at 9:23 PM
Azure tables do not support all the expressions that a list of objects support.

Only expressions which resolve to the operators for the $filter clause, as documented here, are supported.

Hence, the 'contains' is not supported.