David
David

Reputation: 2233

Can't call DeleteObject() on entity framework

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.DeleteObject()

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

Upvotes: 0

Views: 556

Answers (1)

David
David

Reputation: 2233

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

Upvotes: 1

Related Questions