From: Roberto (JIRA) <nh...@gm...> - 2010-06-28 14:41:12
|
[ http://216.121.112.228/browse/NH-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19371#action_19371 ] Roberto commented on NH-2206: ----------------------------- Same error on different linq query public class Person { public virtual int Id { get; set; } public virtual String FirstName { get; set; } public virtual String LastName { get; set; } } public class Thing { public virtual int Id { get; set; } public virtual String Name { get; set; } public virtual Person Owner { get; set; } } IList<Thing> list = (from Thing item in session.Query<Thing>() select item).ToList<Thing>(); it give same CastResultOperator not supported even without a .cast<>() > Cast is not supported by the new Linq provider > ---------------------------------------------- > > Key: NH-2206 > URL: http://216.121.112.228/browse/NH-2206 > Project: NHibernate > Issue Type: Bug > Components: Linq Provider > Affects Versions: 3.0.0.Alpha1 > Reporter: Diego Mijelshon > Priority: Critical > Attachments: ResultCastTest.cs > > > Executing the attached test results in the following exception: > System.NotSupportedException: The CastResultOperator result operator is not current supported > This works without problems with the old provider. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |