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'm new to LightSpeed, but following some evaluation I'm likely to buy it and use it for a project I wrote years ago in Delphi v6. I wrote a very basic ORM of my own back then, and in some work downtime where I'm a C# developer, patterns, TDD blah bah, I thought it might be interesting to see how much less code I could rewrite it with, just for fun almost, and upskilling myself with LINQ and Lambda expressions etc. So in the old app there is a schedule entity which basically splits a day up into slots of a configurable duration in which people are booked to do a configured activity of a selected type. There are a range of prices available for the activity type. Therefore the original model had a link table allowing a many to many relationship between ActivityPrice and Schedule. As the data model was already in place I've chosen to drag the entities on from the Server Explorer, but I'm getting confused about what the designer will do for me and what I have to do myself. In terms of the UI the links between these are created only from the Schedule configuration screen, although there is no reason particularly why you could create them from the Activity Prices screen. However I think it's important to keep it simple and not have a whole raft of different ways / places in the app to do the same thing. I couldn't see in the samples anywhere where ThroughAssociatoins have been used, so can you guys give me a nudge in the right direction, to a post or something please Many thanks in advance Colin |
|
|
Is this posting regarding many-to-many relationship from Ivan back in September 2009 what you looking for? |
|
|
Hi Joe, Yes it certainly looks like what I'm looking for, many thanks! :-) |
|