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
|
We are experiencing a stackoverflow when working with the following entities: We have an Asset entity and a NavigationObject entity which inherits from Asset. The NavigationObject has a TargetAsset of type Asset. In Asset we have the following to support one end of the parent/child relationship: private readonly EntityCollection<NavigationObject> _navigationObjects = new EntityCollection<NavigationObject>(); plus the associated public property In NavigationObject we have the following to support the other end of the relationship: private readonly EntityHolder<Asset> _asset = new EntityHolder<Asset>(); plus the associated public property. The problem is that whenever we try to create either entity we get a stack overflow. |
|
|
Dear Mark, Can you please paste the call stack here, so the issue can be more clear. also, the insert should be sequential, child to parent mostly. check the nullable in the entities in the database itself. we faced this issue while using custom lightspeed entity template. if you are using that, please confirm that too.
Regards, Aakif |
|