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
|
After adding the WCF ServiceModel and Serialization references to my project LightSpeed started automatically (and incorrectly: compile error) generating DTO objects. I have refactored to remove the references from the project containing the LightSpeed model but I'd like a way to explicitly disable DTO generation. |
|
|
What was the compiler error? Can you provide us with the .lsmodel file that caused the error? |
|
|
I can't give you the lsmodel. Also there were lines like this: Where 'Client.Project.Folfer.EntityNameBase' is the name of one the external base classes. Beyond all these problems, I don't need or want DTOs generated just because my project happens to have a certain couple of project references. |
|
|
Okay, I've added an option for this which will be in the 21 May nightly. The option is NOT surfaced in the user interface so you'll need to open the .lsmodel file in a text editor. To suppress DTO generation, add the following attribute to the <model> element: <model codeGenerationOptions="SuppressDtos" ...> Let us know if you still see problems. |
|