From: Fabio M. (JIRA) <nh...@gm...> - 2011-04-08 05:22:56
|
[ http://216.121.112.228/browse/NH-2611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20850#action_20850 ] Fabio Maulo commented on NH-2611: --------------------------------- Not enough. We are casting it for Future... Going to change the issue title and type. > Allow inheritance of Linq query provider > ---------------------------------------- > > Key: NH-2611 > URL: http://216.121.112.228/browse/NH-2611 > Project: NHibernate > Issue Type: Patch > Components: Linq Provider > Affects Versions: 3.1.0 > Reporter: Dan Jasek > Priority: Minor > Attachments: LinqVisibility.patch > > > I have one final request for relaxing incaptulation in NH. These changes will allow me to create a custom Query Provider for ActiveRecord which properly manages the session lifecycle when executig a linq query. > The applied patch makes a couple of methods in Linq.NhQueryProvider virtual or protected. > It also moves the access of the internal session from PrepareQuery to Execute. If you can't make this change, could you make SetParameters protected instead? > Finally, it adds a constructor to Linq.NhQueryable which will allow me to insert my custom query provider when creating a Query. > Thanks. -- 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 |