diff 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
line wrap: on
line diff
--- a/Source/Data/Linq/Builder/ExpressionBuilder.SqlBuilder.cs	Fri Aug 22 13:41:57 2014 +0400
+++ b/Source/Data/Linq/Builder/ExpressionBuilder.SqlBuilder.cs	Fri Aug 22 17:34:46 2014 +0400
@@ -425,7 +425,7 @@
 
 		Expression ConvertMethod(MethodCallExpression pi)
 		{
-			var l = SqlProvider.ConvertMember(pi.Method);
+			var l = SqlProvider.ConvertMember(ReflectionHelper.ExtractMethodInfo(pi));
 			return l == null ? null : ConvertMethod(pi, l);
 		}
 
@@ -914,7 +914,7 @@
 						}
 						else
 						{
-							var l = SqlProvider.ConvertMember(e.Method);
+							var l = SqlProvider.ConvertMember(ReflectionHelper.ExtractMethodInfo(e));
 
 							if (l != null)
 								return l.Body.Unwrap().Find(IsServerSideOnly) != null;