var u = from u in db.users
orderby u.username == 100 ? 1 : 0 descending
select u;
More Related Contents:
- How to dynamically add OR operator to WHERE clause in LINQ
- Multiple “order by” in LINQ
- LINQ-to-SQL vs stored procedures? [closed]
- Linq: adding conditions to the where clause conditionally
- How can I do an OrderBy with a dynamic string parameter?
- LINQ Between Operator
- LINQ across multiple databases
- Learning about LINQ [closed]
- How can I reject all changes in a Linq to SQL’s DataContext?
- LINQ with SQLite (linqtosql)
- How to create a dynamic LINQ join extension method
- LINQ not updating on .SubmitChanges()
- LINQ To SQL exception: Local sequence cannot be used in LINQ to SQL implementation of query operators except the Contains operator
- Is there a pattern using Linq to dynamically create a filter?
- How to use “contains” or “like” in a dynamic linq query?
- LINQ OrderBy not ordering .. changing nothing .. why?
- Linq to SQL how to do “where [column] in (list of values)”
- Multiple WHERE clause in Linq
- How do I write this cross apply query in LINQ-to-SQL?
- Point connectionstring in dbml to app.config
- Building Dynamic LINQ Queries based on Combobox Value
- NHibernate vs LINQ to SQL
- System.Linq.Expression.Compile error
- How to write Asynchronous LINQ query?
- How do you perform a CROSS JOIN with LINQ to SQL?
- Sum of items in a collection
- Is there a difference between Select * and Select [list each col] [duplicate]
- LINQ Include vs Join. Are they equivalent?
- Tradeoffs using NHibernate 3.0 QueryOver or LINQ provider
- If condition in LINQ Where clause