<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Querying many-to-many relations in NHibernate</title>
	<atom:link href="http://gregdoesit.com/2009/04/querying-many-to-many-relations-in-nhibernate/feed/" rel="self" type="application/rss+xml" />
	<link>http://gregdoesit.com/2009/04/querying-many-to-many-relations-in-nhibernate/</link>
	<description>Do it to get it</description>
	<lastBuildDate>Fri, 03 Feb 2012 04:37:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Yaya Rabiu David</title>
		<link>http://gregdoesit.com/2009/04/querying-many-to-many-relations-in-nhibernate/comment-page-1/#comment-108</link>
		<dc:creator>Yaya Rabiu David</dc:creator>
		<pubDate>Wed, 15 Jul 2009 17:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://gregdoesit.com/?p=130#comment-108</guid>
		<description>have u considered drilling down straight using Expression Class? see the code below. I think it is more straight forward.

Category category; // The category of which its entities wanted to  be retreived
IList nodes = NHHttpModule.CurrentSession.CreateCriteria(typeof(Entity))
                            .CreateCriteria(&quot;categories&quot;)
                           .Add(Expression.Eq(&quot;ID&quot;,category.ID))
                           .List();</description>
		<content:encoded><![CDATA[<p>have u considered drilling down straight using Expression Class? see the code below. I think it is more straight forward.</p>
<p>Category category; // The category of which its entities wanted to  be retreived<br />
IList nodes = NHHttpModule.CurrentSession.CreateCriteria(typeof(Entity))<br />
                            .CreateCriteria(&#8220;categories&#8221;)<br />
                           .Add(Expression.Eq(&#8220;ID&#8221;,category.ID))<br />
                           .List();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thommie</title>
		<link>http://gregdoesit.com/2009/04/querying-many-to-many-relations-in-nhibernate/comment-page-1/#comment-64</link>
		<dc:creator>thommie</dc:creator>
		<pubDate>Thu, 09 Apr 2009 15:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://gregdoesit.com/?p=130#comment-64</guid>
		<description>thank you, will check this in next week, left the comp at home..</description>
		<content:encoded><![CDATA[<p>thank you, will check this in next week, left the comp at home..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gergely Orosz</title>
		<link>http://gregdoesit.com/2009/04/querying-many-to-many-relations-in-nhibernate/comment-page-1/#comment-63</link>
		<dc:creator>Gergely Orosz</dc:creator>
		<pubDate>Thu, 09 Apr 2009 13:10:09 +0000</pubDate>
		<guid isPermaLink="false">http://gregdoesit.com/?p=130#comment-63</guid>
		<description>You have to create an ISession session which you can query. In my example (even though I did not note this) the NHttpModule is a class I developed and the CurrentSession static variable is a singleton that instances an ISession. I have updated the sample with this code as well.

However if you are new to NHibernate I would suggest to go through this tutorial: http://www.hibernate.org/362.html</description>
		<content:encoded><![CDATA[<p>You have to create an ISession session which you can query. In my example (even though I did not note this) the NHttpModule is a class I developed and the CurrentSession static variable is a singleton that instances an ISession. I have updated the sample with this code as well.</p>
<p>However if you are new to NHibernate I would suggest to go through this tutorial: <a href="http://www.hibernate.org/362.html" rel="nofollow">http://www.hibernate.org/362.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thommie</title>
		<link>http://gregdoesit.com/2009/04/querying-many-to-many-relations-in-nhibernate/comment-page-1/#comment-62</link>
		<dc:creator>Thommie</dc:creator>
		<pubDate>Thu, 09 Apr 2009 12:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://gregdoesit.com/?p=130#comment-62</guid>
		<description>i have the same problem i want to display products that belongs to a user, where i have a user table and a product table and there between user_products table that hols the id of the user and the products. But i cant figure out how to display the products that belongs to the current logged in user, i have mappings and everything similar to yours, but how do i write the code to bind this?</description>
		<content:encoded><![CDATA[<p>i have the same problem i want to display products that belongs to a user, where i have a user table and a product table and there between user_products table that hols the id of the user and the products. But i cant figure out how to display the products that belongs to the current logged in user, i have mappings and everything similar to yours, but how do i write the code to bind this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

