[nhusers] NH 3.0 GA Linq Group By not working

2010-12-09 Thread Catalin DICU
Is Linq Group By still not supported or I'm doing something wrong ? My linq is : var q = from p in session.QueryProduct() group p by p.Category into g select new { Category = g.Key, TotalValue = g.Sum(p = p.UnitsInStock * p.Price) };

[nhusers] Recover session after connection lost

2010-05-26 Thread Catalin DICU
I'm using NHibernate with SQL Server 2005 in a WPF client application. If I manually stop the SQL Server service then restart it the session doesn't automatically reconnect. So far this seems to work but is there a better/cleaner way ? : try { using (ITransaction transaction =

[nhusers] NHibernate.Linq : chain Expand()

2009-10-12 Thread Catalin DICU
Hello, When executing the following code I only get two players for each team and for the first team I even get two times the same player (there are more than 2 players in each team) INHibernateQueryableMatch queryable = session.LinqMatch();