This is a migrated thread and some comments may be shown as answers.

Sorting content in autogenerated Diagram.cs file

5 Answers 49 Views
Feature Requests
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Francois
Top achievements
Rank 1
Francois asked on 16 Feb 2012, 02:32 PM
Hi,

When updating the diagram, the class/methods/properties names of the autogenerated .cs file (when uncheking the Generate multiple files) are not sorted, so it's not very source control friendly when trying to figure out what really changed.

I know it's very minor but i think it could be nice.

Thanks,

--
Frank

5 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 21 Feb 2012, 01:05 PM
Hello Frank,

You are right, the generated classes are not sorted but their order preserved, so if you just open the rlinq file and regenerate the classes, the output should be the same as before. If the model is updated with new classes, they will be appended at the end of the file.
Maybe I did not understand you correctly but what would be the difference if the classes are explicitly sorted, except that new classes will be added somewhere in the middle of the file and not at the end?

Greetings,
Alexander
the Telerik team
Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
0
Francois
Top achievements
Rank 1
answered on 27 Feb 2012, 04:26 PM
When I delete an element in the designer view and then I add it again using "Import from database", the order is not preserved. I have to do that somethings because it seems that the model is out of sync (mainly the references to other tables) from the database.

In the specific case of the screenshots, the view VW_LOCALISATION is the same before/after, but since they're not sorted, it is marked as a change in the source control.
0
Alexander
Telerik team
answered on 01 Mar 2012, 04:16 PM
Hello Frank,

You are right, this is a valid scenario. I will add an entry in our backlog so we can discuss that and consider it for implementation for one of the future releases.
Thank you for your feedback.

Greetings,
Alexander
the Telerik team
Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
0
Kevin
Top achievements
Rank 1
answered on 02 Aug 2012, 04:20 PM
I would like to add support for this feature. Maybe the answer is to always keep entities and fields sorted by their ID or name. That would also help to determine whether someone has changed the name of a data field.
0
Ivailo
Telerik team
answered on 07 Aug 2012, 02:59 PM
Hello Kevin,

Thank you for the feedback. We have logged your request in our backlog of possible improvements and it can be implemented for one of our future releases.

Do not hesitate to get back to us if you have any other ideas for making OpenAccess ORM better.

Greetings,
Ivailo
the Telerik team
OpenAccess ORM Q2'12 Now Available! Get your hands on all the new stuff.
Tags
Feature Requests
Asked by
Francois
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Francois
Top achievements
Rank 1
Kevin
Top achievements
Rank 1
Ivailo
Telerik team
Share this question
or