Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Name does not exist in this context
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
MVC
Titre:
Name does not exist in this context
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01560632
Message ID:
01560632
Vues:
54
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform