Proper maintenance of custom attributes

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
crazypit
Posts: 163
Joined: Wed 15 Apr 2009 08:43

Proper maintenance of custom attributes

Post by crazypit » Tue 15 Dec 2009 10:26

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?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 15 Dec 2009 14:01

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.

crazypit
Posts: 163
Joined: Wed 15 Apr 2009 08:43

Post by crazypit » Tue 15 Dec 2009 14:12

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?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 16 Dec 2009 14:33

We will allow to edit and save custom attributes in one of the nearest builds.

Post Reply