Sponsored By Aspose - File Format APIs for .NET

Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!

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.

 

 

About Ian Cooper

Ian Cooper has over 18 years of experience delivering Microsoft platform solutions in government, healthcare, and finance. During that time he has worked for the DTi, Reuters, Sungard, Misys and Beazley delivering everything from bespoke enterpise solutions to 'shrink-wrapped' products to thousands of customers. Ian is a passionate exponent of the benefits of OO and Agile. He is test-infected and contagious. When he is not writing C# code he is also the and founder of the London .NET user group. http://www.dnug.org.uk
This entry was posted in LINQ. Bookmark the permalink. Follow any comments here with the RSS feed for this post.