Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> Type of derived entity is wrong after saving (and refetching)
 

Pages: 1
Bugs & Issues
Type of derived entity is wrong after saving (and refetching)
Page:1/1 

  Print all messages in this thread  
Poster Message
TomV
User



Location:
Belgium
Joined on:
31-Jan-2008 14:22:10
Posted:
76 posts
# Posted on: 19-Dec-2008 16:33:57.  
Hi

I use inheritance of LLBLGenPro and I think I found a bug...

I have a base entity "Device"with several derived entities each with their custom properties. When I fetch a collection with all entities, they are all of the derived type, so far so good. When I change some properties via my UI (I work with DataBinding) and save my entity, I choose to refetch my entity so it would not be outOfSync.

After this refetch, the real type of my derived entity is no longer the derived type, but the type of my base entity (Device). When I then try to cast this refetched entity to the derived type, I get null reference exception because the cast didn't work.

I run with LLBLGenPro Version 2.6 (August 18th, 2008 ).

Please let me know if you need any other information.


Regards,
TomV
Life goes fast, it must be riding a Ducati!  Top
daelmo
Support Team



Location:
Guatemala City
Joined on:
28-Nov-2005 23:35:24
Posted:
8099 posts
# Posted on: 19-Dec-2008 20:06:57.  
- Some changes had been made on this subject. Please update to the lastes runtime library version.
- Please post the relevant code you described above.
- If possible, post a description about the configuration of your inheritance.


David Elizondo
LLBLGen'ing (articles and code snippets) | linkedin | twitter
 
Top
TomV
User



Location:
Belgium
Joined on:
31-Jan-2008 14:22:10
Posted:
76 posts
# Posted on: 23-Dec-2008 08:13:17.  
I just downloaded the runtime libraries of 2008-12-19. Will try this out and let you know what the result is...

Regards
TomV
Life goes fast, it must be riding a Ducati!  Top
TomV
User



Location:
Belgium
Joined on:
31-Jan-2008 14:22:10
Posted:
76 posts
# Posted on: 23-Dec-2008 08:25:11.  
I tested and at first sight the problem is solved with this new version, or I was not able to simulate it now, because the bug not always occured. So when it would happen again, I will reactivate this thread.

Thanks for you help!

Regards
TomV


Life goes fast, it must be riding a Ducati!  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.