File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Orm/Xtensive.Orm/Orm/Internals Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -170,13 +170,13 @@ private void AllocateParameterAndReplacer()
170170 }
171171
172172 if ( closureType . DeclaringType == null ) {
173- if ( expression . Type == closureType )
173+ if ( expression . Type . IsAssignableFrom ( closureType ) )
174174 return Expression . MakeMemberAccess ( Expression . Constant ( queryParameter , parameterType ) , valueMemberInfo ) ;
175175 }
176176 else {
177- if ( expression . Type == closureType )
177+ if ( expression . Type . IsAssignableFrom ( closureType ) )
178178 return Expression . MakeMemberAccess ( Expression . Constant ( queryParameter , parameterType ) , valueMemberInfo ) ;
179- if ( expression . Type == closureType . DeclaringType ) {
179+ if ( expression . Type . IsAssignableFrom ( closureType . DeclaringType ) ) {
180180 var memberInfo = closureType . TryGetFieldInfoFromClosure ( expression . Type ) ;
181181 if ( memberInfo != null )
182182 return Expression . MakeMemberAccess (
You can’t perform that action at this time.
0 commit comments