Some suggestions and bugs

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
Joe Smith
Posts: 32
Joined: Thu 09 May 2013 20:18

Some suggestions and bugs

Post by Joe Smith » Thu 26 Jun 2014 17:26

Hi,
after using ED for some time, I would like to share some suggestions and a couple of bugs :wink:

Suggestions:
1 - Add an option to enable/disable the generation of a single class, just like the "Enabled" template option
2 - Add an option to use the name of the enums instead of the value for NHibernate template as explained here: http://codebetter.com/jeffreypalermo/20 ... level-400/
3 - The regex used for "Validate format -> Numeric" should be changed from "^[1-9]\d*(,\d+)?$" to "^[0-9]\d*(,\d+)?$", because 0 is a valid number too; if it was intended to check if the property has a value, let the user choose which one to use
4 - Add an option to decorate entities as [Serializable]
5 - Add support for [DataType] data annotations

Issues:
1 - Toolbar and docking customizations of the standalone designer gets lost when the program is uninstalled for updates
2 - If you want to set the "Add foreign key properties to the child class" option at a later time, i.e. when the model is already created, it does not works; it only works if you set it when you first create the project or for newly added entities

I hope this will help to improve the software.
Best regards.

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: Some suggestions and bugs

Post by Shalex » Mon 07 Jul 2014 10:20

Thank you for your reports/suggestions. We will investigate the possibility of fixing/implementing them and notify you about the results.

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: Some suggestions and bugs

Post by Shalex » Thu 31 Jul 2014 16:08

Joe Smith wrote:3 - The regex used for "Validate format -> Numeric" should be changed from "^[1-9]\d*(,\d+)?$" to "^[0-9]\d*(,\d+)?$", because 0 is a valid number too; if it was intended to check if the property has a value, let the user choose which one to use
The bug with a format of generated DataAnnotations.RegularExpression for Numeric validate format is fixed in the latest (5.7.412) build of Entity Developer.

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: Some suggestions and bugs

Post by Shalex » Thu 31 Jul 2014 17:27

Joe Smith wrote:5 - Add support for [DataType] data annotations
Please add this attribute via Attributes menu of Entity Developer:
a) navigate to Model > Settings > Attributes > select the assembly with the needed attributes and make sure that the needed attributes (DataType, etc) are checked in the window below, press OK
b) select the needed attribute in the Attributes collection of a particular class property

We do not add this attribute by default because the Entity Developer validation model is common for all three supported frameworks (NHibernate, Entity Framework, LinqConnect/LINQ to SQL).

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: Some suggestions and bugs

Post by Shalex » Wed 13 Aug 2014 06:15

Joe Smith wrote:4 - Add an option to decorate entities as [Serializable]
The Generate Serializable Attribute property is added to the NHibernate template. We will notify you when the corresponding build of Entity Developer is available for download.

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: Some suggestions and bugs

Post by Shalex » Thu 14 Aug 2014 13:08

Shalex wrote:
Joe Smith wrote:4 - Add an option to decorate entities as [Serializable]
The Generate Serializable Attribute property is added to the NHibernate template. We will notify you when the corresponding build of Entity Developer is available for download.
New build of Entity Developer 5.7.422 is available for download!
It can be downloaded from http://www.devart.com/entitydeveloper/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=32&t=30168.

Joe Smith
Posts: 32
Joined: Thu 09 May 2013 20:18

Re: Some suggestions and bugs

Post by Joe Smith » Tue 19 Aug 2014 16:25

Shalex wrote:
Joe Smith wrote:4 - Add an option to decorate entities as [Serializable]
The Generate Serializable Attribute property is added to the NHibernate template. We will notify you when the corresponding build of Entity Developer is available for download.
Excellent, thank you. I hope you will also add this option on a per class basis in a future version :wink:

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: Some suggestions and bugs

Post by Shalex » Thu 21 Aug 2014 10:25

Joe Smith wrote:
Shalex wrote:
Joe Smith wrote:4 - Add an option to decorate entities as [Serializable]
The Generate Serializable Attribute property is added to the NHibernate template. We will notify you when the corresponding build of Entity Developer is available for download.
Excellent, thank you. I hope you will also add this option on a per class basis in a future version :wink:
We will notify you when the corresponding option is added.
Joe Smith wrote:2 - Add an option to use the name of the enums instead of the value for NHibernate template as explained here: http://codebetter.com/jeffreypalermo/20 ... level-400/
The support of mapping a string representation of enum to the string fields in database is implemented. We will notify you when the corresponding build of Entity Developer is available for download.

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: Some suggestions and bugs

Post by Shalex » Thu 04 Sep 2014 15:10

The following features are available in the new (5.7.436) build of Entity Developer :
  • The support of mapping a string representation of enum to the string fields in database is implemented
  • The Generate Serializable Attribute property of classes and complex types is implemented
The build can be downloaded from http://www.devart.com/entitydeveloper/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=32&t=30319.

Joe Smith
Posts: 32
Joined: Thu 09 May 2013 20:18

Re: Some suggestions and bugs

Post by Joe Smith » Wed 17 Sep 2014 21:08

Thank you for all of the fixes you made: you really care about your customers! :wink:
I've another bug and one more suggestion to report to you :roll:
  • There is a little glitch with the new "Generate Serializable Attribute" option: at the template level, it's set to False but a the class level it's set to True, for each class.
    The result is the attribute is not generated (the template setting wins, so to speak), which is exactly what I want, but it's a little bit confusing, isn't it?

    I think that would be very helpful if the "Implement Cloneable" option was also available on a per-class basis too
Keep the good work up!

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: Some suggestions and bugs

Post by Shalex » Thu 18 Sep 2014 12:33

Joe Smith wrote:There is a little glitch with the new "Generate Serializable Attribute" option: at the template level, it's set to False but a the class level it's set to True, for each class.
The result is the attribute is not generated (the template setting wins, so to speak), which is exactly what I want, but it's a little bit confusing, isn't it?
Currently the Generate Serializable Attribute property of the class works only when the Generate Serializable Attribute option of the NHibernate template is set to True.
We will consider renaming option of the class level or/and adding comments in property description to make it more clear.
Joe Smith wrote:I think that would be very helpful if the "Implement Cloneable" option was also available on a per-class basis too
We will notify you when the corresponding option is implemented.

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: Some suggestions and bugs

Post by Shalex » Thu 25 Sep 2014 16:00

New build of Entity Developer 5.7.451 is available for download:
  • The behaviour is changed: the Generate Serializable Attribute extended property of classes and complex types is renamed to Do Not Generate Serializable Attribute (by default, false) with changing its logic correspondingly
  • The Do Not Generate Cloneable Attribute extended property of classes and complex types is implemented (by default, false)
For more information, please refer to http://forums.devart.com/viewtopic.php?f=32&t=30472.

Shalex
Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Re: Some suggestions and bugs

Post by Shalex » Fri 08 Sep 2017 13:19

Joe Smith wrote:Issues:
1 - Toolbar and docking customizations of the standalone designer gets lost when the program is uninstalled for updates
The bug with losing Toolbar and docking customizations of a standalone designer during reinstall is fixed: viewtopic.php?f=32&t=35928.

Post Reply