开发者

Can't call DeleteObject() on entity framework

开发者 https://www.devze.com 2022-12-10 13:56 出处:网络
Ok I have a console app with an app.config, and a web project with a web.config, both which have the same connection string set for my entity framework connection to my SQL Server 2008 database. My en

Ok I have a console app with an app.config, and a web project with a web.config, both which have the same connection string set for my entity framework connection to my SQL Server 2008 database. My entity framwork edmx is in a class library of its own which both the console app and web project reference.

In code behind in the web project I can access all calls, e.g myconn.AddToTable() and moremyconn.DeleteO开发者_开发技巧bject()

In the console app however I can only access AddTo calls but not delete?! Any ideas? THanks.


its ok i figured it - i was missing a system.data.entity reference in my console app

0

精彩评论

暂无评论...
验证码 换一张
取 消