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 2323using NHibernate . Persister . Entity ;
2424using NHibernate . Transaction ;
2525using NHibernate . Type ;
26+ using NHibernate . Util ;
2627
2728namespace NHibernate . Engine
2829{
Original file line number Diff line number Diff line change 1313using NHibernate . Persister . Entity ;
1414using NHibernate . Transaction ;
1515using NHibernate . Type ;
16+ using NHibernate . Util ;
1617
1718namespace NHibernate . Engine
1819{
@@ -36,9 +37,10 @@ internal static IDisposable BeginProcess(this ISessionImplementor session)
3637 new SessionIdLoggingContext ( session . SessionId ) ;
3738 }
3839
40+ //6.0 TODO: Expose as ISessionImplementor.FutureBatch and replace method usages with property
3941 internal static IQueryBatch GetFutureBatch ( this ISessionImplementor session )
4042 {
41- return ( session as AbstractSessionImpl ) ? . FutureBatch ;
43+ return ReflectHelper . CastOrThrow < AbstractSessionImpl > ( session , "future batch" ) . FutureBatch ;
4244 }
4345
4446 internal static void AutoFlushIfRequired ( this ISessionImplementor implementor , ISet < string > querySpaces )
You can’t perform that action at this time.
0 commit comments