This list is for the discussion of the development of the NHibernate
project itself rather than the development of your own projects using
NHibernate.  Please direct your question to the forum at
http://groups.google.com/group/nhusers

Without knowing your code and mapping I can't say for certain, but FWIW the
answer is *probably* to apply the DistinctRootEntity transformer to your
ICriteria instance as in...

criteria.SetResultTransformer(DistinctRootEntity);


...before your execute your query.

Cheers,
-Steve B.

Steve Bohlen
[email protected]
http://blog.unhandled-exceptions.com
http://twitter.com/sbohlen



On Tue, Dec 18, 2012 at 1:26 AM, Sajith A.K. <[email protected]> wrote:

> I have written a criteria to get top 10 Team detail.I got it but it
> contains duplicate record. How can i specify in "ICriteria" to avoid
> duplicate record. Please help.
>
> Thanks in advance
>

Reply via email to