So I need to get the max value of a column (or the last one) using entity framework and both of these queries throw exceptions:...(The ID I'm trying to retrieve is of type varchar, but it works in raw sql, I think
it should work here too)...This one:...st...