From: Diego M. (JIRA) <nh...@gm...> - 2010-07-27 20:06:28
|
[ http://216.121.112.228/browse/NH-2206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19464#action_19464 ] Diego Mijelshon commented on NH-2206: ------------------------------------- Fabio, In the actual code, a method has to return a IQueryable<Animal>, but the source could be Lizard or any other Animal entity depending on internal logic. Querying Animal and filtering on the type is not possible in this case because it's using implicit polymorphism. I consider it critical because it breaks existing code (or, more precisely, forces us to keep the old Linq provider) > 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: Major > 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 |