EntityCollection debugging annoyance

Posts   
 
    
omar avatar
omar
User
Posts: 569
Joined: 15-Oct-2004
# Posted on: 17-Aug-2007 13:44:23   

With LLBL2.x I am always facing the annoyance of inspecting the properties of an EntityCollection during debugging.

If I have a BreakPoint at code an EntityCollection variable and I add a watch, the watch window correctly displays the type of the variable as (MUPS.DAL.HelperClasses.EntityCollection). But when I want to inspect the count of the entity collection (and a lot of other properties also) the watch window would come back saying

"The generic type 'SD.LLBLGen.Pro.ORMSupportClasses.CollectionCore1' was used with the wrong number of generic arguments in assembly 'SD.LLBLGen.Pro.ORMSupportClasses.NET20, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27'.":"SD.LLBLGen.Pro.ORMSupportClasses.CollectionCore1"} Integer"

I dont know if this means I have to cast the entityCollection to a generic one but if that is the case, it becomes a real annoyance to do so as I have to inspect the type of contained entity in order to correctly build the syntax of the generic counter-part rage

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 17-Aug-2007 16:19:11   

But when I want to inspect the count of the entity collection (and a lot of other properties also) the watch window would come back saying

Do you get the same error/exception when you access the Count property in code?

Which runtime library version are you using?

omar avatar
omar
User
Posts: 569
Joined: 15-Oct-2004
# Posted on: 17-Aug-2007 17:05:13   

NO.. I do not get any errors in code at runtime. As I explained. its more of an "annoyance" as it only happens in VS2005's watch windows. Thats why I find it very strange as in code I can check the count property with no issuesconfused

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 18-Aug-2007 05:34:42   

Hi omar,

I can't repro such thing. Could you please provide the EntityCollection declaration code snippet and the Watch expression you are evaluating as well?

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39910
Joined: 17-Aug-2003
# Posted on: 21-Aug-2007 18:08:00   

It's VB.NET specific. Likely a VB.NET compiler thing, as in C# I can't repro it either...

Frans Bouma | Lead developer LLBLGen Pro