开发者

Repository Pattern in C#

开发者 https://www.devze.com 2022-12-19 15:53 出处:网络
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 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#

0

精彩评论

暂无评论...
验证码 换一张
取 消