Quantcast
Channel: Azure Mobile Apps forum
Viewing all articles
Browse latest Browse all 3756

Help with LINQ Query Error with Where Clause

$
0
0

Hello,

I am doing something very simple, but I am clearly missing the piece that makes it work :-)

1. I created a sample mobile service

2. Downloaded it. Compiled it. Published it.

3. Compiled the sample mobile app

4. No issues, everything works (there is a bug, but nothing related to what I am doing)

Issue:

  • I took that project and created another. I mapped everything just like the sample. Everything works great. However in the sample the query is:
                    items = await todoTable
                        .Where(todoItem => todoItem.downloaded == false)
                        .ToCollectionAsync();
  • This works no problem
  • However for me, after I made my updates I can no longer use a Where clause at all. It just causes a "BAD REQUEST" response, but that's not very useful too me.

Not sure how much information to post here.

1. I created a new controller

2. I created a new dataObject

3. I added the class to my dummy phone app

4. Everything works... if I comment out the Where clause. I just can't figure out why the where clause doesn't work

If someone could help or point me what to read, or what more information I need to provide.

a) this is azure (mobile services, sql)

b) is merely an enhanced version of the downloaded sample apps

c) works to insert, delete etc..

Thanks!!


Viewing all articles
Browse latest Browse all 3756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>