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