code_junkie

How to add collation to Linq expressions

Nov 13th, 2011
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. var trash = (from a in ContextBase.db.Users
  2. orderby a.FirstName
  3. select a).ToCollatedList();
  4.  
  5. SELECT * from [User]
  6. ORDER BY FirstName
  7. COLLATE SQL_SwedishStd_Pref_Cp1_CI_AS ASC
Add Comment
Please, Sign In to add comment