I am trying to check if row exists in Azure Easy Tables by using table.Where(item => item.Name == Entry.Text)
Then I am checking if List where I save it is null or not. But table still return something so this is not working.
Should I use other code or is there some way to check if row exists and return bool ?
Asked
Active
Viewed 315 times
1

kudlatiger
- 3,028
- 8
- 48
- 98

Adam
- 806
- 2
- 8
- 15
-
1This might help you to change the logic. https://stackoverflow.com/questions/28667601/get-the-azure-table-row-count – kudlatiger Feb 27 '18 at 08:49
-
Thank you this works! I changed it that I am now checking count of entities what it returns. – Adam Feb 27 '18 at 09:09
-
But there is one very weird bug. I run it on mobile emulator and it works fine. But when I run it on tablet emulator it is not working. It always return 0 as count of found rows which on mobile emulator is 1. I checked the internet connection. Is something wrong with emulator ? Emulators both with same Android version. – Adam Feb 27 '18 at 09:32
-
upvote the answer if it works. Please post a new question for mobile emulator issue. – kudlatiger Feb 27 '18 at 10:20
1 Answers
0
Way to do it:
List<Entity> Entities = new List<Entity>();
Entities = await table.Where(entity => entity.Name == "name");
var count = Entities.Count();
Then check if the count value isn't equal to 0 and you good to go.

Adam
- 806
- 2
- 8
- 15