Alex Rivera | Logout

Sorting data using EF DbSet

Asked 2011-05-20T15:37:22.817
10

Is there a way to pass an order by clause to a DbSet class in EF?

I'm using C#

Edit
Report

1 Answer

1

this would have to be done in a query,

or you would need to define a QueryView in the Edmx.

a QueryView can be used to specify / order / filter the data.

Have a look at this : DefiningQuery versus QueryView

answered 2011-05-20T15:41:36.977

Your Answer