Azure table 存储 - 如何创建 'contains' 条件

Azure table storage - how to create 'contains' condition

我想以非默认方式查询 azure table 存储,f.e。

conditions.Add(TableQuery.GenerateFilterCondition("UserRole", QueryComparisons.Equal, userRole));

我需要某种默认情况下不存在的 QueryComparisons.Contains(如 SQL 中的 LIKE)。

实现这个的最佳方法是什么?

I need some kind of QueryComparisons.Contains (as LIKE in SQL) that is not present by default What is the best way to implement this? Thanks

截至目前,无法使用 Azure 表实现 Contains 类功能。您需要获取所有实体,然后在客户端执行此操作。

充其量,您可以使用 QueryComparisons.GreaterThanOrEqualQueryComparisons.LessThan.

的组合对 Azure 表执行类似 StartsWith 的操作