摘要:
SELECT IDSUM(CASE WHEN myProperty = 2 THEN 1 ELSE 0 END) as nbRowWithValueOf2,SUM(CASE WHEN myProperty = 3 THEN 1 ELSE 0 END) as nbRowWithValueOf3FROM FooGROUP BY IDqueryover = queryover .Select( Projections.Group(c => c.ID), Projections.Sum( Projections.Conditional( ... 阅读全文