Repository Pattern in C#
I am trying to figure out the repository pattern for .NET. I think I have a pretty decent understanding of it, but I still don't feel comfortable using it.
I have googled for this topic, but found some advanced topics along with the repository pattern. What I am looking for is a basic knowledge of the concept, then I can build on 开发者_如何转开发it. With that said, can I get a recommendation of some good articles on the repository pattern?
Thanks
See the answers to Repository pattern tutorial in C#.
I recommend start by Fowler's definition
This concrete implementation could help you as well : )
Ayende's Rhino.Commons has a decent implementation.
I also benefitted from reading "Domain-Driven Design" by Eric Evans, which gives a good foundation of understanding the motivations behind Repository.
Have a look at following Article.
Using the Repository Software Design Pattern
If you go through the whole series above, will be more help full
I'm in exactly the same position you were in. I found this Remondo.net blog post particularly useful. It walks through the implementation of a basic repository:
The Repository Pattern Example in C#
精彩评论