我想使用Microsoft OData Client v7.5.2中新的in operator来执行Contains
(类似于EF),并让OData Client将其作为in ('valueA','valueB')
发送。 OData Client has some "in operator" support是因为我可以看到它具有一个新添加的InToken。 Contains
尚不受支持,或者我做错了。
var ids = new List<Guid>() { Guid.Parse("786ACB66-1F20-47CD-8D92-BEC59C8622E0"), Guid.Parse("29A61E50-B706-4E05-BE2D-CF55E0D9FA2C") };
var customers = context.Customers.Where(c => ids.Contains(c.CustomerID));