I use the data provider SqlDataConnectionin F # for the transfer of certain lines of this migration is to make the connection between the three tables like this, think of it as a succession of tables A, B, Cwhere Band Care inherited from A, so I need to get (in Linq -like):
Bs.Join(As, b.PK, a.FK).Select(new {...})
.Concat(Cs.Join(As, c.PK, a.FK).Select(new {...})
In F#, the closest I got to this:
let result = seq {
yield! query { ... }
yield! query { ... }
}
but I was told that this will produce 2 SQL queries and the overall result will be included. The question is: is there a way to do this "concatenation" as an expression of calculation querywithout using seq, so that everything happens in a single SQL query?
Luiso