groupby multiple columns in a F# 3.0 query

前端 未结 8 838
梦如初夏
梦如初夏 2020-12-14 00:02

Just trying out F# 3.0 and hit a bit of a wall when it comes to grouping by multiple columns. The obvious thing to try was

query {
    for d in context.table         


        
8条回答
  •  抹茶落季
    2020-12-14 00:47

    I see this in first of your links, I think it is what you want:

    query {
        for student in db.Student do
        groupValBy student.Name student.Age into g
        select (g, g.Key, g.Count())
    }
    

提交回复
热议问题