"Linqifying TheBeerHouse" Published by Wrox
My eBook (or what the publisher cleverly dubs a "Wrox Blox") on retooling TheBeerHouse Starter Kit for LINQ to SQL on the .NET Framework 3.5 has finally been published, and is entitled LINQifying TheBeerHouse: An N-Tier LINQ Web Application with ASP.NET 2.0 Website Programming Problem - Design - Solution (ISBN: 978-0-470-41569-6).
The book offers two unique solutions. The first takes advantage of the original application’s data provider model to develop a custom LINQ to SQL provider for the Articles module. The second uses the DataContext as a self-contained DAL, and adds data access methods to the generated entities using partial classes, which is how you'd likely develop a using a purely LINQ-based three-tier ASP.NET application.
There's lots of other pithy background info here too, including the use of LINQ to Objects and the newest features of the C# 3.0 language and .NET Framework 3.5 like object initializers, collection initializers, automatic properties, extension methods, lambda expressions, anonymous types, query and method syntax; the IQueryable interface; deferred execution, and even LINQ to SQL debugging.
If you've worked with TheBeerHouse Starter Kit or read the original book on which it's based ( ASP.NET 2.0 Website Programming: Problem – Design – Solution), or are just interested in learning about replacing ADO.NET data access methods with LINQ to SQL, then it's well worth a read.
If I say so myself. ;-)
Subscribe to this blog for more cool content like this!