Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HasValues remains true using Entity Framework
Message
From
27/10/2010 13:50:07
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
27/10/2010 11:47:32
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01487186
Message ID:
01487207
Views:
55
Ouch,

Sounds like something to let Kevin know about.
Tim

>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,
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform