EDMX Reference in other project : type used in a using statment must be implicitly convertible to 'System.IDisposable' [closed]

StackOverflow https://stackoverflow.com/questions/20442024

enter image description here

enter image description here

Hi All,

I want to have a single project which holds the DataSchema files like EDMX files.

The problem which i am facing is if i create a reference of the PRJDataSchema Project project and try to query the EmployeeEntity i get a "type used in a using statment must be implicitly convertible to 'System.IDisposable'"

How can i resolve this problem.

If i create a class file in PRJDataSchema , like i have created a Test.cs file then i get no problem.

I want to fix the problem in screenshot 1.

any help would be appreciated.

有帮助吗?

解决方案

Try to add a reference to the System.Data.Entity library in the PRJDataAccess project, it is necessary, because your context refers to the assembly.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top