Implementing the Repository Pattern with LINQ-to-SQL
page 1 of 4
Published: 09 Jul 2008
In this article, Liam examines the implementation of the Repository pattern with the help of a LINQ to SQL application using C#. The article starts with a brief overview of the pattern and delves deeper into the implementation of the application in a step-by-step manner.
by Liam McLennan
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 40370/ 93


The purpose of this article is to describe the technique I have used to implement the repository pattern in .NET applications. I will provide a brief description of the repository pattern and LINQ-to-SQL. However, if you are unfamiliar with these technologies, you should research them elsewhere. The goals of my implementation are:

• It must be a general purpose design that can be reused for many projects.

• It must facilitate domain driven design.

• It must facilitate unit testing and testing in general.

• It must allow the domain model to avoid dependencies on infrastructure.

• It must provide strongly typed querying.

View Entire Article

User Comments

No comments posted yet.

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2015  |  Page Processed at 12/1/2015 10:19:44 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search