This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have to change relations by changing the relation id property. The change is done not completely. I attach an example to show this. Please do the following:
I have tested it with the nightly build of 08.12.2010 (Dec 8th), because the official release has the bug with entity map and Guids (one of my previous forum threads). In this case I could change the relation using the relation property (not the relation id property) - you can see it in the commented-out code. Then it works fine. However changing the relation through relation id property is essential for Undo system - I cannot store object references in UndoList. |
|
|
I'd like to kindly ask if there's a chance to get answer on this post. I know that I'm still not your client, but the answer is essential to finish my prototype and to recommend LightSpeed to my colleagues in order to buy it. |
|
|
There will be a fix for this issue in the next nightly build. There is an outstanding issue where if you change a foreign key to the ID of an entity which has not yet been loaded, then load that entity and its collection, the count will still be incorrect: gadget.WidgetId = 44; // Widget 44 is not yet loaded The workaround for this is to ensure that the new parent is loaded before performing the assignment: FindById<Widget>(44); |
|
|
Thank you for the answer and information about the "late loading" issue. I will download the nightly build as soon as it's available and check it out. |
|
|
It works fine. Thank you. |
|