Linq context object isn't registering as a type of System.IDisposable object

前端 未结 7 1812
情歌与酒
情歌与酒 2021-02-19 00:37

I\'m trying to use my \'context\' object in a using statement. It works on one project, but on another, I\'m getting the following error.

\'...\': type u

7条回答
  •  清酒与你
    2021-02-19 00:41

    Or, if you are using Entity Framework, make sure you have a reference to System.Data.Entity and System.Data.Objects (C#: using / VB.NET: Imports).

提交回复
热议问题