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