riganti/infrastructure

GetLocal only checks Partition and Row keys, but ignores types

Closed this issue · 0 comments

I am having an issue with getting two diferent entities, both inheriting from TableEntity and both having the same Partition and Row keys.

The different types are not compared in the function, even though you can have same row and partition keys in different tables. This results in the function returning wrongly.

return (TEntity)Entities.SingleOrDefault(x => x.PartitionKey == partitionKey && x.RowKey == rowKey);