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].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.