File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 23
23
using NHibernate . Persister . Entity ;
24
24
using NHibernate . Transaction ;
25
25
using NHibernate . Type ;
26
+ using NHibernate . Util ;
26
27
27
28
namespace NHibernate . Engine
28
29
{
Original file line number Diff line number Diff line change 13
13
using NHibernate . Persister . Entity ;
14
14
using NHibernate . Transaction ;
15
15
using NHibernate . Type ;
16
+ using NHibernate . Util ;
16
17
17
18
namespace NHibernate . Engine
18
19
{
@@ -36,9 +37,10 @@ internal static IDisposable BeginProcess(this ISessionImplementor session)
36
37
new SessionIdLoggingContext ( session . SessionId ) ;
37
38
}
38
39
40
+ //6.0 TODO: Expose as ISessionImplementor.FutureBatch and replace method usages with property
39
41
internal static IQueryBatch GetFutureBatch ( this ISessionImplementor session )
40
42
{
41
- return ( session as AbstractSessionImpl ) ? . FutureBatch ;
43
+ return ReflectHelper . CastOrThrow < AbstractSessionImpl > ( session , "future batch" ) . FutureBatch ;
42
44
}
43
45
44
46
internal static void AutoFlushIfRequired ( this ISessionImplementor implementor , ISet < string > querySpaces )
You can’t perform that action at this time.
0 commit comments