Re: [nhusers] NHibernate.Linq select bug

2010-02-18 Thread Diego Mijelshon
Next time, it would be better if you stated what the bug is, the context, etc. Anyway, I ran it and it tries to use the constant string in an incorrect way, so that's probably unsupported in 2.x. Have you tried with 3.x (trunk)? Diego On Wed, Feb 17, 2010 at 06:13, Rikard Pavelic wrote: > I

[nhusers] NHibernate.Linq select bug

2010-02-17 Thread Rikard Pavelic
I stumbled upon this bug while trying to use NHibernate.Linq [Test] public void SelectWithWrapping() { var list = (from user in session.Linq() select new Wrapper(user, "xxx")).ToList(); Assert.AreEqual(3, list.Count); } public class Wrapper { public Wrapper(User item,