Mercurial > pub > bltoolkit
comparison Source/Data/Linq/Builder/ExpressionBuilder.SqlBuilder.cs @ 3:1ef98bd70424
!bug 100 +3h
Исправление проблемы BLToolkit + mono 3.4
author | cin |
---|---|
date | Fri, 22 Aug 2014 17:34:46 +0400 |
parents | f990fcb411a9 |
children |
comparison
equal
deleted
inserted
replaced
2:79a04c6442bf | 3:1ef98bd70424 |
---|---|
423 }); | 423 }); |
424 } | 424 } |
425 | 425 |
426 Expression ConvertMethod(MethodCallExpression pi) | 426 Expression ConvertMethod(MethodCallExpression pi) |
427 { | 427 { |
428 var l = SqlProvider.ConvertMember(pi.Method); | 428 var l = SqlProvider.ConvertMember(ReflectionHelper.ExtractMethodInfo(pi)); |
429 return l == null ? null : ConvertMethod(pi, l); | 429 return l == null ? null : ConvertMethod(pi, l); |
430 } | 430 } |
431 | 431 |
432 static Expression ConvertMethod(MethodCallExpression pi, LambdaExpression lambda) | 432 static Expression ConvertMethod(MethodCallExpression pi, LambdaExpression lambda) |
433 { | 433 { |
912 case "Contains" : return true; | 912 case "Contains" : return true; |
913 } | 913 } |
914 } | 914 } |
915 else | 915 else |
916 { | 916 { |
917 var l = SqlProvider.ConvertMember(e.Method); | 917 var l = SqlProvider.ConvertMember(ReflectionHelper.ExtractMethodInfo(e)); |
918 | 918 |
919 if (l != null) | 919 if (l != null) |
920 return l.Body.Unwrap().Find(IsServerSideOnly) != null; | 920 return l.Body.Unwrap().Find(IsServerSideOnly) != null; |
921 | 921 |
922 var attr = GetFunctionAttribute(e.Method); | 922 var attr = GetFunctionAttribute(e.Method); |