I am using Azure Table Storage. When I query a table that is empty, with parameters other than PartitionKey and RowKey, I get an exception. When I have at least one line, an exception does not appear. If I query an empty table using only PartitionKey and RowKey, this is normal.
Of course, I do not want to do an extra round to check if there is a table. How do people usually solve this problem? Is there a way to quickly check if a table is empty?
I use the repository for development, as I just saw that there were errors in the development repository in this scenario, and the error disappears during production. However, I don’t want to save the customized code for the development repository only, is there a good way around this, so I could have the same code as the on-premises as well as in a working cloud?
source
share