views:

674

answers:

1

I don't want to use array sorting on the web server it should be done on SQL server.

Microsoft does not support query(in EF) like this:

SELECT * FROM [Table_1]
ORDER BY [Table_1].field
COLLATE SQL_SwedishStd_Pref_Cp1_CI_AS

Any ideas? Thank you in advice...

A: 

The Entity Framework does support a COLLATE clause in an ORDER BY in Entity SQL. I'm not aware of any way to do it with LINQ to Entities. Indeed, I don't know how to do it with any LINQ provider. I'm not sure it's possible.

Craig Stuntz
Very very bad. I found hack solution, but I still hope that Microsoft will support this in the feature.
omoto
Entity SQL isn't a kludgy solution. It is supported and works fine. But, yes, it would be nice to have similar support in LINQ.
Craig Stuntz