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
|
Hiya, I have been tasked with breaking up our rather large Lightspeed 3.0 model (well over 100 entities plus stored procs) into smaller linked models now we have Lightspeed 3.11. Well, the linked models are awesome but I have a few questions:
Thanks guys for a cool product, hope you can help me with some of these issues, Gerry
|
|
|
1. We've had another user report problems with "Go To Linked Entity" but haven't been able to reproduce them. If you could provide us with a copy of your model project then that might help us track this down and fix it. (You can attach a zip file via the Options tab.) Thanks! 2 and 3. Cut and paste of entities and stored procs isn't currently available. We'll see if we can get that added, but in the meantime, my secret ninja suggestion is you'll find it easier to remove stuff rather than incrementally move or recreate it. So: * Make two additional copies of your original .lsmodel file (making three copies in all). * Load up each of the three copies. If you save at this point you'll get lots of errors because of duplicate definitions, of course, but don't worry about that (or load each file up into a separate temporary project). * In each file: - multiple-select the entities that aren't relevant to that subdomain at all and hit Delete - multiple-select the entities that aren't part of that file's subdomain, but need to have associations into the file, and set their Is Link property to true (this turns them from real entities into links) - multiple-select the stored procs that aren't part of the subdomain and hit Delete Selecting a bunch of things and hitting delete or setting a common property should be a lot faster and more reliable than recreating things from Server Explorer or copying and pasting one thing at a time. NOTE: Turning entities into links will cause validation warnings ("External reference Entity1 defines its own properties. These will be ignored."). These will not cause errors and can be ignored; however, if you want to be clean and get rid of them, then delete all entity properties out of each entity that you're going to turn into a link before setting Is Link to true. * Once you've done this across all three files you should be good to go. |
|
|
Thanks Ivan,
Sounds like a much more reliable approach. I did think overnight of maybbe scripting/writing a small app to move entities across sub-models but I don't really know the rules about how the .diagram files relate to .models and I would have to work out the xml structure or both file types. Your copy-delete method will probably cost less time and effort and be more reliable anyway, thanks. Drag-drop across sub-models sounds like a very good product enhancement,I look forward to seeing in in Lightspeed NT :) Meanwhile if you feel inclined to make up a move-entity script or app....
Gerry |
|
|
P.S. Not allowed really to put our models into public domain, is there a private address I can send the zip to ? Would you need the whole project or just the .model/.diagram/.cs files for the entities ? |
|
|
You can send the files to ivan @ the obvious domain name. I'd like to have the project rather than just the .lsmodel files because when we add these files into our own projects they tend to work which makes me think it may be a project layout issue. You can remove all files except the .lsmodel/diagram files if there's a lot of them, but if you could keep the project *structure* intact then that would be handy. Thanks! (Also, please ensure the zip file doesn't contain any binaries, as our mail provider discards messages containing binaries without even showing them to us.) |
|
|
Looks like this was an issue with model files being in project folders rather than the project root. I've got a fix wending its way through the build system and it should be in the 28 August nightly. Give that a go on Monday and let me know if you still see problems. |
|