From: Fabio M. (JIRA) <nh...@gm...> - 2011-04-08 05:24:47
|
[ http://216.121.112.228/browse/NH-2611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo updated NH-2611: ---------------------------- Issue Type: New Feature (was: Patch) Summary: Allow injectable/inheritance of Linq query provider (was: Allow inheritance of Linq query provider) > Allow injectable/inheritance of Linq query provider > --------------------------------------------------- > > Key: NH-2611 > URL: http://216.121.112.228/browse/NH-2611 > Project: NHibernate > Issue Type: New Feature > 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 |