File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/NHibernate/Linq/Visitors Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 7
7
using NHibernate . Linq . Functions ;
8
8
using NHibernate . Param ;
9
9
using NHibernate . Util ;
10
+ using Remotion . Linq ;
10
11
using Remotion . Linq . Clauses . Expressions ;
11
12
using Remotion . Linq . Clauses . ResultOperators ;
12
13
@@ -387,7 +388,7 @@ protected HqlTreeNode VisitConstantExpression(ConstantExpression expression)
387
388
{
388
389
System . Type t = expression . Value . GetType ( ) ;
389
390
390
- if ( t . IsGenericType && t . GetGenericTypeDefinition ( ) == typeof ( NhQueryable < > ) )
391
+ if ( t . IsGenericType && typeof ( QueryableBase < > ) . IsAssignableFrom ( t ) )
391
392
{
392
393
return _hqlTreeBuilder . Ident ( t . GetGenericArguments ( ) [ 0 ] . FullName ) ;
393
394
}
@@ -461,4 +462,4 @@ protected HqlTreeNode VisitNewArrayExpression(NewArrayExpression expression)
461
462
return _hqlTreeBuilder . ExpressionSubTreeHolder ( expressionSubTree ) ;
462
463
}
463
464
}
464
- }
465
+ }
You can’t perform that action at this time.
0 commit comments