This is another take on accessing dynamic objects in F# There I\'m using let y = x.Where(fun x -> x.City =\"London\").Select(\"new(City,Zip)\") to parametriz
open System.Linq
type record = { x:int; y:string }
let mkQuery q =
query {
for x in [{x=1;y="test"}].AsQueryable() do
select ((%q) x)
}
mkQuery <@ fun r -> r.x, r.y @>
|> Seq.iter (printfn "%A")