Design pattern for Data Access Layer

前端 未结 5 605
旧时难觅i
旧时难觅i 2020-12-23 15:36

You might feel this is homework, for that I am sorry. I have searched but couldn\'t find a proper answer.

So my question is:

I have several classes and each

5条回答
  •  渐次进展
    2020-12-23 16:08

    I suggest you to use a RepositoryBase for all this common operations. If you decide to use an ORM for data access it's good to think in a implementation of repositories based on a Generic Type repository.

    Here is a good article about it:

    http://lostechies.com/jimmybogard/2009/09/03/ffffd-repository-implementation-patterns/

提交回复
热议问题