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 <[email protected]>wrote: > I stumbled upon this bug while trying to use NHibernate.Linq > > [Test] > public void SelectWithWrapping() > { > var list = (from user in session.Linq<User>() > select new Wrapper(user, "xxx")).ToList(); > > Assert.AreEqual(3, list.Count); > } > > public class Wrapper > { > public Wrapper(User item, string msg) > { > this.Item = item; > this.Msg = msg; > } > public User Item; > public string Msg; > } > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
