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
|
Hi, I've been trying to use the linked model feature but an experiencing some trouble regarding reverse associations. When I manually create the reverse association then code works just fine. I've Included a test project illustrating the issue. Test1: Displays that a normal One To Many in the same model works Test2: Displays that the same thing fails with a Linked Model Test3: Shows that with a manually created partial of the linked class, the problem is solved. Why is this class not being generated by the designer? I'm working with LightSpeed31Professional-20101112.msi Regards Rolf. |
|
|
Here is the test project |
|
|
Due to a limitation of the way we implement linked models, the association must appear in BOTH linked files (because the association involves code elements in both generated .cs files). In your case, the association appears in Child.lsmodel, but not in LightSpeedModel.lsmodel. You need to paste a link to Manager into LightSpeedModel.lsmodel, and create a copy of the association there. The Check Links command should alert you to issues like this -- if it doesn't, let me know and I'll see if I can add another check. We know this is inconvenient and error-prone. It's something we'd very much like to improve but we've found that Visual Studio makes it rather difficult. However we will keep looking for ways to make this more convenient and hopefully more seamless! |
|