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
|
Hello. |
|
|
This occurs because the guid column is being mapped to both the Id property and the foreign key property. LightSpeed doesn't really handle the scenario where Ids are also foreign keys, because it expects to be able to allocate Ids itself: that is, in LightSpeed, PKs are opaque and have no business meaning. If you control the database, you should split the attractions.guid column into an ID column (which will contain arbitrary GUIDs acting as IDs) and a PoiID column (which will contain FKs into the Poi table, i.e. the current contents of the column). If you do not control the database, you will need to remove the association between Attraction and Poi, and instead create manual traversal methods that use the Id to perform a query. See http://www.mindscape.co.nz/forums/Thread.aspx?ThreadID=2447 for an example of how to do this. |
|