on 12-01-2015 12:20 AM
hi all,
I've an OData service generated via SEGW.
It has only one entity which i created by importing from a DDIC structure.
I went ahead and redefined all my read, write methods and the service works fine.
Now i want to enhance the structure
- Add a new field to the structure
- Change the data element of an existing field
After making these changes to the structure, how should i enhance the entity in SEGW?
Option 1: Do I have to delete the already created entity and recreate a new entity from this enhanced structure?
Option 2: Or do I've to add the new fields to the existing entity manually and also make changes to the field properties based on the new data elements?
When i regenerate, would i lose the custom code that i've written in the EXT classes.
thanks for the help
~Madan
Hi Madan,
- Add a new field to the structure
Right click on entity name- > Import -> Properties, you can add new properties in you entity.
- Change the data element of an existing field
If it doesn't update automatically, when you try regenerating the project, it will give you model binding error, check and correct that manually.
When i regenerate, would i lose the custom code that i've written in the EXT classes.
- If you have redefined the method it will not be loss of code on regenerating.
Regards,
Tarun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.