none
Sorting Records from a Context Model? RRS feed

  • Question

  • Hi,

    How woud I sort my records?

    I want to return the top (n) records sorted for example by an UpdateDate field.

    return context.AuditTrails.Where(x => x.TableName.Equals(tableName)).Take(top).ToList();
    

    I.W Coetzer
    Thursday, June 9, 2011 3:18 PM

Answers

All replies