1

I can create a single aggregate projection on a collection of entities

example Return the number of shops that are active

But is there a way to project the number of a bunch of different summations in the same query over?

example

number of shops that are active?

Number of shops with active products?

Number of inactive shops?

Then ultimately project these into new properties using the select method.

If you can't do it all within one queryover is there a way to create individual sub queries and join them together to project them (as new properties) into one object?

4

1 に答える 1

1

QueryOverはCriteriaの単なるラッパーであるため、単一のQueryOverでそれを実行できるとは思いません。

これには複数の基準を使用できます。複数のQueryOverを作成し、プロパティUnderlyingCriteriaを使用してMultiCriteriaに追加します。

于 2012-07-31T09:49:45.857 に答える