How to dynamic add filters to a LINQ query against an Odata Source in C#
问题 I have a query like the following var query = (from x in NetworkDevices where x.Name == "blabla1" || x.Name == "blabla2" select x ); and i'm running it against an Odata endpoint, so it effectively gets translated into the following URL https://targetserver/endpoint.svc/NetworkDevices()?$filter=Name eq 'blabla1' or Name eq 'blabla2' So i want to dynamically add lots of those where filters... In C# i can just keep adding it to my query, but that isn't dynamic. I want to do it at runtime. If i