Description of problem: I can have a class with inner class or enum modelled outside Business Central. When this is pushed into BC it can be further modified using Data modeler (e.g. adding a field, adding label). When the changes are saved the class is re-generated by Data modeler ignoring inner classes. Version-Release number of selected component (if applicable): CR2 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Inner classes and enums are dropped. Expected results: They should be preserved. Additional info:
Data modeler does NOT parse the code pushed externally, it just displays the result of a binary introspection. When saving, it will always regenerate the code, and therefore, losing any change outside the scope of the introspection (currently getters and setters). It doesn't currently do full code analysis and selective source code modification. To avoid this scenario of inadvertently overwriting externally modified code, controls were added in order to detect if a file was created/modified by an external tool, as explained at https://bugzilla.redhat.com/show_bug.cgi?id=1041760 If the file is externally modified, data modeler will only display it in read only mode, avoiding any modification. Any further change to the data model must be done by using the external tool. *** This bug has been marked as a duplicate of bug 1041760 ***