Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次のことができます:
container.Users.Where(u => u.Name == "Omar").FirstOrDefault()
しかし
container.Users.FirstOrDefault(u => u.Name == "Omar")
を返しますNotSupportedException (The method 'FirstOrDefault' is not supported.)。
NotSupportedException (The method 'FirstOrDefault' is not supported.)
これらは本質的に同じであるのに、なぜサポートされていないのでしょうか?
OData プロバイダーで使用される LINQ 変換エンジンは、すべてのシナリオを処理できるわけではありません。
これらは論理的には同じですが、クエリ文字列を作成するには、それぞれの式を生成する必要があります。エンジンは 2 番目の形式をサポートしていません。