we’re starting a new project using NHibernate, and considering using NHibernate.Linq (The embedded version in 3.0, not the contrib project). I’m aware that this is a relatively recent addition. Has anyone used the current LINQ for NHibernate much? Is it mature enough for real-world applications yet?
Specificly, have you encountered difficult bugs, how is the performance, and are there any major gaps in support that caused you problems?
Thanks!
NHibernate Linq is a promising feature with lots of potential. Unfortunately I have already encountered several situations where a query in Linq did not work and I had to use QueryOver (another very fine addition).
Is it mature enough for real-world applications? Yes, if you are not limiting yourself to only using Linq and nothing else (HQL, ICriteria, QueryOver, or even pure SQL).
Here is a nice, short list of examples comparing the different APIs.
The question came up in a slightly different form: Tradeoffs using NHibernate 3.0 QueryOver or LINQ provider
I use it in combination with WCF RIA Services where the return types for methods is IQueryable.