CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Ian Cooper [MVP]


Architecting LINQ to SQL applications, part 1

Architecture for  LINQ to SQL

People are beginning to ask questions about how to architect applications that use LINQ. It is important to remember that LINQ is both a set of language features and a set of additions to the framework.

While there are no best practices for LINQ today, because the technology has not been in use long enough, when we look at some of the LINQ providers, such as LINQ to SQL, we can start to develop our best practices based on the foundations of best practices around existing tools. While it provides new ways of solving some existing problems the patterns that it uses are well understood, even in their C# 3.0 clothing. To draw parallels with existing best practice, to see where it can inform us, we need to understand what roles LINQ plays in our Enterprise Architecture. That way, we can work with LINQ when we use it within our own applications rather than against it.

  • What are some of the questions we hope to answer by looking to existing practices?
  • What is the relationship between LINQ to SQL (and LINQ to Entities for that matter) and the data access object (DAO) or Data Mapper pattern?
  • How do we write dynamic queries with LINQ?
  • How do we write an NTier application , when LINQ is part of our mix?

We’ll try to address some of these issues, and others. Along the way we will define what LINQ is, what enterprise architecture looks like, what the difference between tiers and layers is, and how we should write a distributed system.

First we will look at what we mean when we refer to LINQ itself, and then at what we mean by layered architectures, in order to establish some groundwork for what is to come.


 

 


Published Nov 29 2007, 11:02 PM by Ian Cooper
Filed under:

Comments

» Daily Dose of Links - 20071205 Alvin Ashcraft’s Daily Geek Bits: Daily links plus random ramblings about development, gadgets and raising rugrats. said:

Pingback from  » Daily Dose of Links - 20071205 Alvin Ashcraft’s Daily Geek Bits: Daily links plus random ramblings about development, gadgets and raising rugrats.

# December 5, 2007 10:10 AM

Microsoft running at full steam | Nicholas Clarke said:

Pingback from  Microsoft running at full steam | Nicholas Clarke

# December 6, 2007 7:09 AM

Ian Cooper [MVP] said:

Let's return to the series on how to architect applications that use LINQ To SQL. First of all, for

# February 17, 2008 12:50 PM

DotNetKicks.com said:

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# February 19, 2008 4:06 PM

Gerlei Márton blogja az Architektúra Fórumon said:

Egy LINQ-s problémával küszködve találtam az alábbi cikksorozatot, és szerintem eléggé hasznos. Sok mindenről

# May 7, 2008 5:54 PM

linq where in said:

Pingback from  linq where in

# June 24, 2008 7:11 AM

Duncan said:

You have links going from later articles to earlier ones.  I would very much appreciate a doubly-linked list, so I can actually start at the beginning and navigate through.  Possible?  Thanks!

# July 1, 2008 10:27 PM

Lexapro zoloft wellbutrin. said:

Effects of lexapro. Lexapro side effects. What are the side effects of lexapro. Lexapro.

# July 15, 2008 12:51 PM

Episode 10: LINQ | Herding Code said:

Pingback from  Episode 10: LINQ | Herding Code

# July 23, 2008 7:01 PM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add
Check out Devlicio.us!