Page 1 of 1

Proper maintenance of custom attributes

Posted: Tue 15 Dec 2009 10:26
by crazypit
Hello,

I need to decorate a number of entity properties with some custom attributes. Nevertheless, if i try to re-generate the entities, all custom attributes are gone.
Is there a proper way to maintain these attributes or do i have to wait for the synchronization function of the Entity Developer?

Posted: Tue 15 Dec 2009 14:01
by AndreyR
Try to make changes to our templates in order to change the code generation for the properties you want to have the custom attributes for.

Posted: Tue 15 Dec 2009 14:12
by crazypit
The properties to be decorated are completely hand picked. There is not a single connection between them on data type, parameters, name, etc. Therefore, i cannot see an efficient way to use the template engine for this.

Is the planned synchronization mechanism the answer to this? Will there be a flag with which the attributes of a property are kept intact even if there are changes to it e.g. on the return data type?

Posted: Wed 16 Dec 2009 14:33
by AndreyR
We will allow to edit and save custom attributes in one of the nearest builds.