We want to develop an application where all changes are database driven. That means, on any model change the database will be changed first.
After that, an import of the changed DB into EntityEditor will be made. No changes are made to the imported model, so we are able to reimport and export at any time.
The export to an existing project will overwrite only the generated classes, but not the customized.
As the generation of relations by the EntityEditor does not work yet, I want to make a workaround and add the relations by my own in the customized classes.
To do that, I inherited from the generated class with all attributes and all data members. Now I add only the relations to the customized classes.
The aim is, to get rid of the customized classes as soon the generation of relations in EntityEditor will work.
My Problem at this point is, that the foreign key will be defined twice. First as simple attribute in the parent class and second as relation in my child class.
Now my Question:
- exists a more elegant way to modify/extend the data members of a generated class than inherit from the generated class?
- is it possible to remove the data member of the parent with the foreign key in the child class? How?
- alternatively is it possible to overwrite the data member of the parent class in the child class? How?
Maybe you have already some examples with customizations of generated classes?
Thanks jackson