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've made a one to many relation Relationship between two entitys and the [EagerLoad] attribute is generated only in one of the entities, so when i try to use the relationship from the code it makes a exception.
If i try to add the attribute manually, each time that i compile the project it is eliminated by the LigthSpeed code generator.
How can i do to resolve this problem?
thanks
Ariel
|
|
|
Hello Ariel, Which version of LightSpeed are you using? We added code in 2.1 to allow you to specify which sides of the relationship EagerLoad should be applied to -- see the Eager Load Backreference and Eager Load Collection properties. If you set both of these properties, then EagerLoadAttribute will be applied to both entities. Even so, it shouldn't cause an exception to have EagerLoad applied at only one end. If you could supply us with a repro case, that would be really useful for us. Thanks! |
|