Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Name does not exist in this context
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
MVC
Title:
Name does not exist in this context
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01560632
Message ID:
01560632
Views:
53
Hi everybody,

In my ClientRepository class I am trying to add this method
public void UpdateClient(Client client, bool autoCommit = true)
        {
            this.context.Entry(client).State = EntityState.Modified;
            if (autoCommit) this.Commit();
        }
However, I am getting EntityState underlined with red and saying name "EntityState" does not exist in this content. I have "using System.Data" declaration at the very top and I've checked that this enumeration exists in System.Data namespace.

What I am doing wrong?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform