Data Mapper Pattern

后端 未结 3 1129
轻奢々
轻奢々 2021-02-02 12:33

Up until now I\'ve been using Active records in all my c# database driven applications. But now my application requires my persistence code being split from my business objects.

3条回答
  •  不思量自难忘°
    2021-02-02 13:22

    I would suggest that you take a look at an O/R-mapper tool before you try to implement the Data Mapper pattern yourself. It will save you a lot of time. A popular choice of O/R-mapper is NHibernate.

提交回复
热议问题