Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HasValues remains true using Entity Framework
Message
From
27/10/2010 11:47:32
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
HasValues remains true using Entity Framework
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01487186
Message ID:
01487186
Views:
107
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,
Next
Reply
Map
View

Click here to load this message in the networking platform