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
|
It would be ideal if we had an option to make the generated entity and unit-of-work classes internal rather than public. We don't want to expose those classes as part of the public API of our assembly. Thanks! |
|
|
Good idea; I have added this to our backlog. As an interim measure, you can change the public classes to internal by editing the templates in %ProgramFiles%\Mindscape\LightSpeed 2.0\Tools\Designer\Templates\[language]\Entity.vm and DataContext.vm. These are NVelocity templates, but even if you don't know NVelocity, it should be pretty obvious where the class visibility is declared. VERY IMPORTANT IF YOU DO THIS: If you subsequently uninstall LightSpeed, the installer will not know that you have customised the templates, and will delete them. So you will need to copy and reinstate around an uninstall-reinstall cycle. Plus of course you will need to copy the modified templates to all dev machines. As I say, strictly an interim measure! |
|
|
Thanks! |
|
|
I have added support for marking entities and value object types to be generated as internal. This will be in nightlies numbered 20080710 and above, available after about 1800 GMT from http://www.mindscape.co.nz/Products/LightSpeed/nightlybuilds.aspx. The LINQ unit of work type will be generated as public if any entity type is public. No documentation comments are generated for public types. We do not prevent you from creating inconsistent visibilities e.g. a public entity type which has an association to an internal entity type or a value object property of internal type: this will cause a compiler error when you build the generated code. Please let us know if you run into any problems. |
|