Sorting content in autogenerated Diagram.cs file

6 posts, 0 answers
  1. Francois
    Francois avatar
    52 posts
    Member since:
    Dec 2010

    Posted 16 Feb 2012 Link to this post

    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
  2. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 21 Feb 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Francois
    Francois avatar
    52 posts
    Member since:
    Dec 2010

    Posted 27 Feb 2012 Link to this post

    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.
  5. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 01 Mar 2012 Link to this post

    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 >>
  6. Kevin
    Kevin avatar
    13 posts
    Member since:
    Aug 2011

    Posted 02 Aug 2012 Link to this post

    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.
  7. Ivailo
    Admin
    Ivailo avatar
    318 posts

    Posted 07 Aug 2012 Link to this post

    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.
Back to Top
DevCraft banner