Odata-包含的集合筛选器

Odata-包含的集合筛选器,odata,Odata,您好,我想在此结构中进行筛选: class User{ public ICollection<Role> Roles{get; set} } class Role{ public string Permissions{get; set;} //"User, Admin, Editor" } 类用户{ 公共ICollection角色{get;set} } 阶级角色{ 公共字符串权限{get;set;}//“用户、管理员、编辑器” } 我想通过权限查找用户。我试过这个: /o

您好,我想在此结构中进行筛选:

class User{
  public ICollection<Role> Roles{get; set}
}

class Role{
 public string Permissions{get; set;} //"User, Admin, Editor"
}
类用户{
公共ICollection角色{get;set}
}
阶级角色{
公共字符串权限{get;set;}//“用户、管理员、编辑器”
}
我想通过权限查找用户。我试过这个: /odata/Users/?$filter=Roles/any(r:contains(r/权限,'Admin'))

以下是例外情况:

名称为“contains”的函数没有匹配的函数签名 指定的参数。所考虑的函数签名是: 包含(Edm.String Nullable=true,Edm.String Nullable=true)

哪里会有问题?odata可以使用此查询吗? 多谢各位