File tree 1 file changed +3
-3
lines changed
Orm/Xtensive.Orm/Orm/Internals
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -170,13 +170,13 @@ private void AllocateParameterAndReplacer()
170
170
}
171
171
172
172
if ( closureType . DeclaringType == null ) {
173
- if ( expression . Type == closureType )
173
+ if ( expression . Type . IsAssignableFrom ( closureType ) )
174
174
return Expression . MakeMemberAccess ( Expression . Constant ( queryParameter , parameterType ) , valueMemberInfo ) ;
175
175
}
176
176
else {
177
- if ( expression . Type == closureType )
177
+ if ( expression . Type . IsAssignableFrom ( closureType ) )
178
178
return Expression . MakeMemberAccess ( Expression . Constant ( queryParameter , parameterType ) , valueMemberInfo ) ;
179
- if ( expression . Type == closureType . DeclaringType ) {
179
+ if ( expression . Type . IsAssignableFrom ( closureType . DeclaringType ) ) {
180
180
var memberInfo = closureType . TryGetFieldInfoFromClosure ( expression . Type ) ;
181
181
if ( memberInfo != null )
182
182
return Expression . MakeMemberAccess (
You can’t perform that action at this time.
0 commit comments