What's wrong with Linq to SQL?

前端 未结 11 2159
春和景丽
春和景丽 2021-01-02 09:34

What\'s wrong with Linq to SQL?

Or - what about Linq to SQL would make it unsuitable for a project, either new or existing? I want to hear about why you would

11条回答
  •  北荒
    北荒 (楼主)
    2021-01-02 10:02

    It is difficult to mock while unit testing because of a lack of an interface on the System.Data.Linq.DataContext class. Here's a possible approach: Mocking LINQ to SQL DataContext.

提交回复
热议问题