Print Page | Close Window

2nd relationship does not load

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1612
Printed Date: 06-May-2024 at 2:07am


Topic: 2nd relationship does not load
Posted By: manishaudio
Subject: 2nd relationship does not load
Date Posted: 08-Jan-2010 at 10:07am
Hi,

I have an Room table which is mapped to both Assets as 1 to many and to Racks as 1 to many.   I check my mapped associations and they seem correct. When the Room loads, the assets load but the Racks property is always empty.   Could someone give me some guidance as to where the problem might be. My db model is correct and the relationships show correctly in the Devforce mapping tool.



Replies:
Posted By: GregD
Date Posted: 08-Jan-2010 at 4:29pm
Are you handling the PendingEntityListResolved event for aRoom.Assets and aRoom.Orders? That would notify you when data has been successfully retrieved for the targeted property. The retrieval process would begin when the property is referenced in a code statement.

If you're trying to use the data in those properties instantaneously and Assets (but not Racks) have already been retrieved into cache, that would explain Assets having data and Racks not have data -- i.e., you may simply be trying to use the Racks data before it has made it back from the server.



Print Page | Close Window