Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HasValues remains true using Entity Framework
Message
De
27/10/2010 11:47:32
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
HasValues remains true using Entity Framework
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01487186
Message ID:
01487186
Vues:
108
Hi All,
I'm using MM .Net 4.0 and just switched over some of my classes to MS Entity Framework 4.0. I was using the following in MM .net classic entitties.
Orders O = new Orders();
O.GetAllEntities();
If O.Entity.HasValues
{
........
}
That worked, but when I changed the classes to use EDM, the HasValues property stays true all the time. Even if I haven't called a Get method, HasValues is alread set to true.

To get around this, I stopped using HasValues and just check EntityList.Count > 0.

Anyone else had this issue?

Thanks,
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform