Skip to content

Commit de73158

Browse files
committed
fleshed out post
1 parent 36e996a commit de73158

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

_posts/2012-04-17-show-and-tell-tugberkugurlu.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,25 @@ comments: true
99

1010
## Introduction
1111

12-
[introduction post](http://www.tugberkugurlu.com/archive/generic-repository-pattern-entity-framework-asp-net-mvc-and-unit-testing-triangle)
12+
When Tugberk sent me the link last night to this series, my curiousity was piqued. This pattern is something we had used for previous Code52 projects - which also used Entity Framework as the backing store.
13+
14+
For those who are not familiar with it, a **repository(1)** is typically defined as (from [Edward Hieatt and Rob Mee](http://martinfowler.com/eaaCatalog/repository.html)): a component which "mediates between the domain and data mapping layers using a collection-like interface for accessing domain objects."
15+
16+
Why use the repository pattern?
17+
18+
- decouple the application logic from the data access logic
19+
- test the application logic in isolation - swap out the database for an in-memory collections of data.
20+
21+
Anyway, before I go spoiling the content, Tugberk has written a series on this:
22+
23+
- in the [first part](http://www.tugberkugurlu.com/archive/generic-repository-pattern-entity-framework-asp-net-mvc-and-unit-testing-triangle), he discusses the pattern and why you should care.
24+
- in the [second part](http://www.tugberkugurlu.com/archive/how-to-work-with-generic-repositories-on-asp-net-mvc-and-unit-testing-them-by-mocking), he explains how you can use this with Entity Framework and MVC3.
25+
- and to finish, he [announces](http://www.tugberkugurlu.com/archive/entity-framework-dbcontext-generic-repository-implementation-is-now-on-nuget-and-github) that he has a NuGet package for this.
1326

1427
## About the Author
28+
29+
Tugberk Ugurlu hails from Turkey and juggles university studies with his work as a Programmer and Internet Sales Director. He blogs at [www.tugberkugurlu.com](http://www.tugberkugurlu.com/) and is [@tourismgeek](http://twitter.com/tourismgeek) on Twitter.
30+
31+
## Addendum
32+
33+
1. If you want more on this, Jon Galloway and Jesse Liberty did a screencast on **[Building a Repository using TDD](http://channel9.msdn.com/Series/The-Full-Stack/The-Full-Stack-Part-3-Building-a-Repository-using-TDD) for their video series "The Full Stack". Check it out.

0 commit comments

Comments
 (0)