Design pattern for Data Access Layer

前端 未结 5 595
旧时难觅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:15

    I suggest using an ORM, Entity Framework or NHibernate will do nicely. Then you do not have to worry about a db context or create SQL statements.

提交回复
热议问题