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'm having some trouble mapping out a MySQL database. I'm starting small and just wanting to get two tables working. I have workOrders and workOrderJobs tables that look something like: [workOrders] workOrderID (Primary Key) [workOrderJobs] workOrderJobID (Primary Key) workOrderID (Foreign Key) I've brought both tables into the designer via the server explorer. I then grabbed a one to many tool and connected from workOrders to workOrderJobs. I then set the Key Property Reference to "workOrderID" and ran this query:
This results in a query result set of count 0. As you see I've added a tracelogger to see exactly what sql is being constructed.
If I execute this exact statement against my database I get a result set of count 5. I'm not sure what's going on here. I've tried several different workorders that I know have multiple workorderjobs and some will return a single workorderjob but never a collection. Any help would be appreciated. Thanks, Stephen |
|
|
Remove the Key Property Reference definition. This is only valid for composite key based entities.
|
|