Linq To SQL in a N-Tier Application

17. December 2009

When doing Domain Driven Development (DDD) people have tried to make Linq To SQL work as the Data Layer. I have seen a few implementations of this that were not very clean and made more work for the developer. A common solution I’ve seen has been to use the LINQ generated Entities from the dbml file and “convert” them into the corresponding Domain Entity. In this post I will show you how to manually write your Linq to SQL classes to work with your existing Domain Model to avoid such conversions.

More...

LINQ, SQL Server, .NET 4.0 , , , ,

I love the Coalesce operator in C#

11. August 2009

Recently I was given a requirement where clients can enter alternate text for particular content and even alternate text to the alternate text. They wanted it so that the default text would only show if the first and second alternate text was null.

More...

.NET 3.5, LINQ, General , ,

Explaining C# Features in LINQ

21. July 2009

 

I will go into some of the newer features of C# 3.0 specifically those that are involved with LINQ.

On July 25th and 26th the BSDA will be hosting an event called LINQ Bootcamp where presenters will go through the book “Programming Microsoft LINQ” chapter by chapter (1 – 12).  It will be a fun weekend and a great chance to get your feet wet with LINQ.

If you don’t think you will be able to make it to the event I would still check out the book.

book-300x300

More...

LINQ , ,