DataContext Repository Pattern Example Code

An entry about linq | design patterns Publication date 27. September 2008 11:25

Since writing my post on abstracting the Linq to Sql DataContext, I’ve had several requests to post an example project which shows exactly how this works. I finally found some time to do just that – click here to download it!

In the zip file you’ll find the Devin.Core project (Devin is the name of a small start-up I’m involved in), which contains the current version of my DataContext abstraction, as well as the specification pattern implementation that I’ve written about earlier (which by the way is not really finished yet – I’m still planning to pursue this further when I get some time).

To show how it works, I’ve included a simple console application that you can play with.

Currently rated 5.0 by 12 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Comments

Powered by BlogEngine.NET 1.4.5.0

Welcome!

My name is Fredrik Kalseth, and this is my blog - thanks for visiting! I am fortunate enough to work with what I love for a living, and this blog is essentially the biproduct of that.

I work as a senior consultant for Capgemini, and am also an active participant in the Norwegian .NET community, as an avid attendee but also as a speaker (most recently at NNUG and MSDN Live).

As a developer, I have a wide circle of interest. My primary passion is for agile, test-driven development, with focus on best practices and clean code. That said, I also love to work on the frontend, especially with web development.

On Twitter? My handle is fkalseth. On LinkedIn? I`m there too.

NDC 2010

The conference to attend this summer happens June 16th-18th in Oslo, Norway. Are you going? Be sure to catch my talk on AOP while you're there!

 

Disclaimer

This is a personal blog; any opinions expressed here are my own and do not necessarily reflect those of my employer. All content herein is my own original creation, and as such is protected by copyright law. Unless otherwise stated, all source code posted on this blog is freely usable under the Microsoft Permissive License.

What Readers Talk About

Comment RSS