Entity classes decoupled from LINQ to SQL provider for implementing the Repository pattern. How?

前端 未结 9 662
不知归路
不知归路 2021-02-02 02:57

I have looked over the Repository pattern and I recognized some ideas that I was using in the past which made me feel well.

However now I would like to write an applicat

9条回答
  •  我在风中等你
    2021-02-02 03:38

    I think you want POCO (Plain Old CLR Objects) support. LINQ to SQL has a adapter called Close2Poco.

    But I would advise making the switch to Entity Framework, at the moment they also have a POCO adapter, but in v2 its expected to be supported out of the box.

提交回复
热议问题