Home

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

Sign In or Register to comment.