Monday, September 10, 2007 - Posts

XML, LINQ, Databinding a ListBox to an Anonymous Type

I've got this XML file; it's an export of the Northwind Employees table. I load this up with LINQ to XML and then I want to databind it into a Windows Forms ListBox. In the ListBox, I want to display a concatenation of the firstName and lastName but Read More

Filed Under: ,

Northwind & Photos - How Many Times Will I Write This Code?

Not the first time I've done this (at least LINQ makes it a bit more interesting); static void Main(string[] args) { using (NorthwindDataContext ctx = new NorthwindDataContext()) { List<Employee> employees = ctx.Employees.ToList(); Read More