I have a storage table in Azure with the following primary and row keys (not really, just an example) and retrieve the whole table as a list of TableEntities:
"partitionkey", "00"
"partitionkey", "01"
"partitionkey", "10"
"partitionkey", "11"
"partitionkey", "20"
"partitionkey", "21"
When I query the list like so:
var myItem =
(from item in list
where item.RowKey == "00"
select item).FirstOrDefault();
myItem returns null. The same is true if I query for RowKey == "01".
But when I query by RowKey alone with any string which does NOT have a leading "0", I get the expected result. Also, if I query using any PartitionKey and the RowKey HAS a leading "0":
var myItem =
(from item in list
where item.PartitionKey == "partitionkey" && item.RowKey == "00"
select item).FirstOrDefault();
I will also get the expected result.
If RowKeys in Azure Table Storage are strings, why does a string with a leading "0" matter?
Has anybody else run into this and if so, is it a bug?