﻿<?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>CedarLogic&amp;amp;lt;br /&amp;amp;gt;Shawn Cicoria commented on Linq for NHibernate</title><description>Here, in the continued foray into LINQ and the 3.5 (Orca's) release, is an implementation of LINQ over
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment19</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment19</guid><pubDate>Wed, 04 Apr 2007 17:02:21 GMT</pubDate></item><item><title>CedarLogic - Shawn Cicoria commented on Linq for NHibernate</title><description>Here, in the continued foray into LINQ and the 3.5 (Orca's) release, is an implementation of LINQ over...
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment18</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment18</guid><pubDate>Wed, 04 Apr 2007 10:12:35 GMT</pubDate></item><item><title>Hartmut's Box commented on Linq for NHibernate</title><description>In the last days I&amp;amp;#8217;ve been thinking about what will happen to NHibernate after LINQ has officially been released. While looking for some resources on the web I stumbled about some posts by Oren Eini aka Ayende Rahien. Ayende is...
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment17</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment17</guid><pubDate>Sat, 31 Mar 2007 18:20:42 GMT</pubDate></item><item><title>((Research + Development) - Sleep) &amp;amp;gt; 24 commented on Linq for NHibernate</title><description>About a week or so ago, Ayende released his initial version of Linq for NHibernate that can be used with
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment16</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment16</guid><pubDate>Mon, 26 Mar 2007 00:52:26 GMT</pubDate></item><item><title>Console.Write(this.Opinion) commented on Linq for NHibernate</title><description>Eu sou um leitor compulsivo de blogs e web-sites, mas infelizmente n&amp;#227;o consigo ler tudo, passo os olhos
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment15</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment15</guid><pubDate>Tue, 20 Mar 2007 13:36:22 GMT</pubDate></item><item><title>Ayende Rahien commented on Linq for NHibernate</title><description>Jon,
  
Applied nearly in full, the only thing that I changed was the DataContext class, that is a great idea, but now it needs the session from outside, rather than have it create the session factory &amp; factory, which can be expensive.
  
Thanks for doing such a lot of work!
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment14</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment14</guid><pubDate>Mon, 19 Mar 2007 21:03:47 GMT</pubDate></item><item><title>Jon Stelly commented on Linq for NHibernate</title><description>Ayende, this looks like a great start at getting Linq for NHibernate going.
  
  
I took the liberty of cleaning up some things:
  
  
1) I changed the project type of NHibernate.Linq to a class library and split out the unit tests to a NHibernate.Linq.Tests project.
  
2) NHibernateLinqQuery now implements IOrderedQueryable&lt;T&gt; instead of IQueryable&lt;T&gt;.  This lets users add orderby clauses to the query, though I haven't yet added the functionality to process the orderby statement.
  
3) I changed the namespace to NHibernate.Linq.  I don't know what your plans are but I don't want to see your efforts get lost so I'd like to see this brought into the NHibernate project as an official extension.  If it becomes an official extension, then it should probably use the typical extension namespace pattern, hence my change.
  
4) I added an NHibernateContext class that can be used like the ADO.NET Entity Framework ObjectContext class.  See the TestContext class in the Tests project for an example.
  
  
http://www.jonstelly.com/files/development/NHibernate.Linq.zip
  
  
Also, since I'm sure a lot of people are looking for this right now, I'd like to suggest you post a link in the NHibernate forums to this blog entry and maybe we can get a group together to get this working.  I plan on dedicating some time in the next few weeks to adding some functionality and you've got a good foundation here for us to build on.
  
  
Good work,
  
Jon
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment13</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment13</guid><pubDate>Sun, 18 Mar 2007 17:14:47 GMT</pubDate></item><item><title>Sam Gentile commented on Linq for NHibernate</title><description>Yup, I'm still stuck in Seattle and I still feel like crap. Tomas just went off to the airport and I
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment12</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment12</guid><pubDate>Sun, 18 Mar 2007 02:02:44 GMT</pubDate></item><item><title>Ayende Rahien commented on Linq for NHibernate</title><description>There is actually no point in not going the extention method route.
  
It is easy to do, and it doesn't require that NHibernate itself would have a dependency on Orcas.
  
Wait with the collection stuff... I want to finish the basic examples first, before we leap frog Microsoft.
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment11</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment11</guid><pubDate>Sat, 17 Mar 2007 14:34:33 GMT</pubDate></item><item><title>Jerome Haltom commented on Linq for NHibernate</title><description>Bah. You win.
  
  
I was working on this, but wasn't even able to get the CTP installed in time. Good job! You have chosen the exact syntax I was going for also.
  
  
As for filtering collections, I think ISession.Linq&lt;T&gt;(ICollection&lt;T&gt;) would be appropiate to wrap the NH collection in an IQueryable.
  
  
I would solidify .Linq as a REAL method though and build a patch for NH prime. No reason to go the extension method route with an open project such as NH&gt;
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment10</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment10</guid><pubDate>Sat, 17 Mar 2007 14:27:38 GMT</pubDate></item><item><title>Ayende Rahien commented on Linq for NHibernate</title><description>Linq&lt;T&gt;() is an extention method that returns an IQueryable&lt;T&gt;.
  
I then process the expression tree. I agree that it is not trivial by far. 
  
The implementation right now is _very_ simple, it can handle single select + where clause, and projections.
  
Some of the stuff that they have in the 101 examples is flat out crazy in "let us see how far we can push it" fashion.
  
I don't think that they are going to document it, they may provide a sample provider implementation with at least basic functionality.
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment9</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment9</guid><pubDate>Sat, 17 Mar 2007 13:27:04 GMT</pubDate></item><item><title>Frans Bouma commented on Linq for NHibernate</title><description>You're using extension methods or IQueryable? 
  
  
You can implement Linq support with extension methods pretty easily, that's not the problem. The problem is optimizing the query, which can only be done by using IQueryable as that gives you the full expression tree, so you can handle multiple selects and froms in a single query for example. 
  
  
I talked about this with Matt Warren and Anders about this and they are working on an example about this as it doesn't seem to be trivial. (the expression tree interpretation is pretty nasty and not well (read: not at all) documented. 
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment8</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment8</guid><pubDate>Sat, 17 Mar 2007 12:18:54 GMT</pubDate></item><item><title>Ayende Rahien commented on Linq for NHibernate</title><description>@Liang,
  
For some reason is seems to add a :9443 port to the URL, even though it isn't there.
  
Please try to check it out rather than browse, it will work
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment7</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment7</guid><pubDate>Sat, 17 Mar 2007 09:20:34 GMT</pubDate></item><item><title>Ben Scheirman commented on Linq for NHibernate</title><description>*golf clap*
  
  
Well done, Ayende.
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment6</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment6</guid><pubDate>Sat, 17 Mar 2007 02:11:41 GMT</pubDate></item><item><title>Liang commented on Linq for NHibernate</title><description>Ayende,
  
  
The SVN link seems not working. 
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment5</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment5</guid><pubDate>Fri, 16 Mar 2007 23:39:41 GMT</pubDate></item><item><title>Jeremy D. Miller -- The Shade Tree Developer commented on Linq for NHibernate</title><description>I am putting a post together on what we saw from Linq to Entities this week, but let&amp;amp;#39;s just say that
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment4</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment4</guid><pubDate>Fri, 16 Mar 2007 22:50:18 GMT</pubDate></item><item><title>Ayende Rahien commented on Linq for NHibernate</title><description>I think you installed the .Net 3.0 redistributable.
  
You need the March CTP for this
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment3</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment3</guid><pubDate>Fri, 16 Mar 2007 15:04:51 GMT</pubDate></item><item><title>Craig Neuwirt commented on Linq for NHibernate</title><description>Very cool!  Is the c# 3.0 redistributable download the only thing
  
needed to get it to compile.  After I installed it, the csc compiler still
  
did not recognize c# 3.0 extensions.
  
  
thanks
  
craig
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment2</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment2</guid><pubDate>Fri, 16 Mar 2007 15:01:38 GMT</pubDate></item><item><title>Grimace of Despair commented on Linq for NHibernate</title><description>That was just an accident waiting to happen. Way to go, Ayende!
</description><link>http://ayende.com/2219/linq-for-nhibernate#comment1</link><guid>http://ayende.com/2219/linq-for-nhibernate#comment1</guid><pubDate>Fri, 16 Mar 2007 12:45:06 GMT</pubDate></item></channel></rss>