Exception after calling SaveChanges

I'm using LinqPad v 4.57.02 with an ObjectContext.

I can query entities fine, but when I modify them and save I get the following:

Entity Provider could not be Modified because of the following conditions:
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.

Here's the script

var provider = Providers.Single (p => p.ProviderID == 1000);

provider.Enabled = false;

SaveChanges();

Maybe a week ago everything was working fine. Any ideas what I should be looking for?

Comments

  • Could there have been changes to your configuration file? Go to connection properties and verify that everything is correct.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!