IT/DB & Nhibernate

NHibernate에서 중복 제거

SJ.. 2011. 10. 28. 00:10

criteria.SetResultTransformer(new NHibernate.Transform.DistinctRootEntityResultTransformer());


지금까지 projection으로 이문제를 해결했었는데..  이렇게 간단한 해결책이 있었다......


원문 : http://maonet.wordpress.com/2007/12/14/where-should-i-distinct-and-sort-data-result-from-nhibernate/
저작자표시 비영리 변경금지 (새창열림)