Page 1 of 1

The linq Last method throws a exception

Posted: Tue 09 Jun 2015 15:32
by ashlar64
Hello,

This line of code works fine:
var v = context.Jobs.First();

This line of code throws a exception:
var v = context.Jobs.Last();

The exception is:
"The query operator 'Last' is not supported."

I assume this is a bug?

Re: The linq Last method throws a exception

Posted: Wed 10 Jun 2015 10:09
by MariiaI
"The query operator 'Last' is not supported."
This is an expected error due to the fact that it is not supported in LinqConnect, as well as in Microsoft LINQ to SQL.
A similar issues and solutions have been discussed here:
http://forums.devart.com/viewtopic.php?t=15796
http://stackoverflow.com/questions/1262 ... linqs-last
http://stackoverflow.com/questions/7253 ... -supported
http://stackoverflow.com/questions/3476 ... ble-object

If you have any further questions regarding working with LinqConnect, feel free to contact us.