Re: [nhibernate-development] ISession and IStatelessSession

2010-12-12 Thread Fabio Maulo
If you move CreateQuery(IQueryExpression queryExpression) to ISessionImplementor and then you change the ctor NhQueryProvider and NhQueryable with a ISessionImplementor, should be enough. On Sat, Dec 11, 2010 at 3:26 PM, Patrick Earl wrote: > I've been implementing Linq support for IStatelessSe

Re: [nhibernate-development] ISession and IStatelessSession

2010-12-12 Thread Fabio Maulo
What mean a Stateless opened ? What mean a Stateless connected ? The connection is opened & closed at each command where is no transaction. The Close of a statelesssession mean only dispose of the transaction (where there is an active transaction). In practice IsOpen & IsConnected are two meaning

Re: [nhibernate-development] ISession and IStatelessSession

2010-12-11 Thread Patrick Earl
Ya, I noticed the same thing about IsOpen. Obviously other people have been interested in the same thing. I didn't see any discussion about negatives in the issues. Is anyone aware of any issues other than superficial ones like Hibernate doesn't have it and the docs would be integrated?

Re: [nhibernate-development] ISession and IStatelessSession

2010-12-11 Thread Julian Maughan
Hello Patrick I haven't looked into this much, but you might find the following JIRA issues interesting: http://216.121.112.228/browse/NH-2445 http://216.121.112.228/browse/NH-1440 On Sun, Dec 12, 2010 at 8:42 AM, Patrick Earl wrote: > Thanks for filling

Re: [nhibernate-development] ISession and IStatelessSession

2010-12-11 Thread Patrick Earl
Thanks for filling a big hole in my knowledge Diego! I even had the thought that there could be some sort of interface that was more internal, but it didn't occur to me that it would be a completely separate interface. I didn't even check what AbstractSessionImpl inherited from... I just incorrec

Re: [nhibernate-development] ISession and IStatelessSession

2010-12-11 Thread Diego Mijelshon
AFAIK, the common interface is ISessionImplementor. What am I missing? Diego On Sat, Dec 11, 2010 at 15:26, Patrick Earl wrote: > I've been implementing Linq support for IStatelessSession, and it's > going fairly smoothly, except for one issue. I need to call the same > query creation met

[nhibernate-development] ISession and IStatelessSession

2010-12-11 Thread Patrick Earl
I've been implementing Linq support for IStatelessSession, and it's going fairly smoothly, except for one issue. I need to call the same query creation method on both the ISession and IStatelessSession. In my previous work, I also realized that I might need to access a session to get information