DCSIMG
LINQ,.NET - Zuker On Foundations

Zuker On Foundations

The realm of .NET (WPF, WCF and all around)

Browse by Tags

All Tags » LINQ » .NET (RSS)
LINQ to SQL – IsNull and Ordering
I thought I would share a nice small tweak I made to a LINQ to SQL model. Assume I have the following table structure for ‘Categories’: I faced with the need to select categories while ordering it by the combination of Description1 and Description2 (Note: nullable fields). I entered some dummy data to the table to illustrate the point: The goal is to retrieve the order as follows: 1, 3, 5, 2, 4 After explaining that, lets forward to the LINQ statements then. Take 1 – Simple Aggregation var query...

Posted Saturday, January 30, 2010 12:00 AM by Amir Zuker | 4 comment(s)

תגים:, ,