Page 1 of 1
{"The EDM function 'Edm.Reverse' is not supported."} error
Posted: Fri 02 Dec 2011 18:01
by asowmyan
Hi
I am using the 5.30.196.0 version of dotConnect and I am getting the following error when using the EndsWith method
{"The EDM function 'Edm.Reverse' is not supported."}
Can you please help!
Thanks
Anandhi
Posted: Tue 06 Dec 2011 09:01
by Shalex
Please upgrade to the latest (5.50.250) version of dotConnect for PostgreSQL and notify us about the results.
Same problem using Telerik MVC Grid and latest dotconnect
Posted: Fri 03 Feb 2012 20:06
by danielst
Hi,
I'm experiencing the same problem using Telerik MVC Grid and dotconnect 5.70.293.0.
When I filter using Contains or StartsWith, it works fine, but EndsWith not.
The error occurs when calling:
source.Provider.Execute(
Expression.Call(
typeof(Queryable), "Count",
new Type[] { source.ElementType }, source.Expression));
source.Expression contains the following Debug View:
.Call System.Linq.Queryable.Where(
.Call System.Linq.Queryable.Select(
.Call
{
.Call (.Call ($item.cliIE).ToLower()).EndsWith(.Call "9".ToLower()) == True
}
Could you verify for me?
Thanks
Posted: Tue 07 Feb 2012 16:54
by Shalex
We cannot reproduce the problem in our environment (with both EF v 4.x and EF v1). Could you please localize the issue and
send us a small test project (without using Telerik components if possible)?
Sample project
Posted: Wed 08 Feb 2012 13:49
by danielst
Hi,
This error occurs using Where this way:
context.Product.Where(p => p.Description.ToLower().EndsWith(txtSearch.Text.ToLower())).ToList();
If I replace EndsWith with Contains or StartsWith, it runs correctly.
I'll send a sample project soon.
Thanks
Posted: Mon 13 Feb 2012 08:45
by Shalex
We have reproduced the issue. We will post here when it is fixed.
Posted: Thu 16 Feb 2012 15:21
by Shalex
The Edm.Reverse canonical function is supported for PostgreSQL servers of 9.1 and higher versions.
The conversion of .StartsWith, .Contains, .EndsWith to LIKE clause in the generated SQL for the case of expression-based condition is supported.
We will post here when the corresponding build of dotConnect for PostgreSQL is available for download.
Posted: Mon 27 Feb 2012 14:43
by Shalex
New build of dotConnect for PostgreSQL 5.70.311 is available for download now!
It can be downloaded from
http://www.devart.com/dotconnect/postgr ... nload.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to
http://www.devart.com/forums/viewtopic.php?t=23471 .