how to use groupBy with F# linq-to-sql? -
i do
<@ linq.inctxes |> microsoft.fsharp.linq.query.groupby (fun intx -> intx.rectime, intx.id, intx.str) @> |> microsoft.fsharp.linq.query.query |> seq.map ^-^ fun sq ->
but f# linq can't understand / translate type tuple of 3 elements ... can ?
the tuples can't translated sql. can do group in f# , not in "sql" (f# quotation) shown below.
<@ linq.inctxes @> |> microsoft.fsharp.linq.query.query |> seq.groupby (fun intx -> (intx.rectime, intx.id, intx.str)) |> seq.map ^-^ fun sq ->
Comments
Post a Comment