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
|
Hallo, I'd like to ask about tool which allows generate ViewModel classes based on model diagram? Does Mindscape offer such tool? Regards, Aleksandra |
|
|
No we dont but you could either extend the code generation templates to generate these classes for you as you will have same metadata available about the model that we use to generate the current entity class definitions or alternatively you could write a custom code generation tool and use the Mindscape.LightSpeed.MetaData libraries to obtain information from an existing compiled model and use that to generate your ViewModel classes. My suggestion would be to look at extending the templates first since presumably it would make most sense to have these regenerated along with your entity definitions as the model is changed over time. For more information about how to achieve this have a read through this blog post: http://www.mindscapehq.com/blog/index.php/2009/09/16/customising-lightspeed-entity-templates/
|
|
|
Thank you Jeremy, we will implement solution based on T4 templates probably. Thanks for your help. Aleksandra |
|