﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on NH Prof feature: The 2nd level cache</title><description>ionel,
  
Please check the documentation for AR, it is all there.
  
The documentation for NH attempts to use plain NHibernate API to maximize relevance . 
</description><link>http://ayende.com/3795/nh-prof-feature-the-2nd-level-cache#comment3</link><guid>http://ayende.com/3795/nh-prof-feature-the-2nd-level-cache#comment3</guid><pubDate>Mon, 05 Jan 2009 20:48:39 GMT</pubDate></item><item><title>ionel commented on NH Prof feature: The 2nd level cache</title><description>I have read the user guide og NH Prof and see the samples are for NH. If I use AR, how do I get the "session" object ? More exactly, how would you translate the following using AR?
  
  
 // SELECT * FROM Posts
  
foreach (Post post in session.CreateQuery("from Post").List())
  
{
  
	//lazy loading of comments list causes: 
  
	// SELECT * FROM Comments where PostId = @p0
  
	foreach (Comment comment in post.Comments) 
  
	{
  
		//print comment...
  
	}
  
}
  
  
Thanks.
</description><link>http://ayende.com/3795/nh-prof-feature-the-2nd-level-cache#comment2</link><guid>http://ayende.com/3795/nh-prof-feature-the-2nd-level-cache#comment2</guid><pubDate>Mon, 05 Jan 2009 20:28:12 GMT</pubDate></item><item><title>James L commented on NH Prof feature: The 2nd level cache</title><description>Yes, it's comforting to see how the cache is working for you.
  
  
I may have to shell out for this thing...
</description><link>http://ayende.com/3795/nh-prof-feature-the-2nd-level-cache#comment1</link><guid>http://ayende.com/3795/nh-prof-feature-the-2nd-level-cache#comment1</guid><pubDate>Mon, 05 Jan 2009 15:30:59 GMT</pubDate></item></channel></rss>