Request that the Reverse Engineering Wizard "remember" my changes

6 posts, 0 answers
  1. Alfred Ortega
    Alfred Ortega avatar
    193 posts
    Member since:
    May 2005

    Posted 04 Jun 2009 Link to this post

    For the most part I've gotten comfortable with the ORM but one thing that continues to frustrate me is the reverse engineering (RE) wizard.  Why can it not remember I changed a column name or don't want a table mapped?  I already ensure all my columns/tables are named in a singular tense so I don't need OA to remove the ending 's' from a column called 'status'..  it's supposed to be there!  And if I add a column to a table. I want the RE wizard to recognize that one change, and maintain whatever other changes I already made so I don't have to do them again (and again and again and again). 

    Please fix this.

    soon.

    Thanks in advance,
    Al
  2. Ady
    Admin
    Ady avatar
    589 posts

    Posted 05 Jun 2009 Link to this post

    Hi Alfred Ortega,
     
     We have already scheduled an improved implementation of the default naming scheme for the wizard. That would handle plural table/column names better.

     Regarding your second point - can you elaborate a bit more. If you add a column and then perform a 'Merge' to reflect these changes, OA will add a corresponding field for this column and retain your existing changes also.

    Sincerely yours,
    Ady
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. Alfred Ortega
    Alfred Ortega avatar
    193 posts
    Member since:
    May 2005

    Posted 05 Jun 2009 Link to this post

    Ady,
    I wanted to test against the version/concurrency handling in OA by adding in a new column.  But when I run the "merge" it looks at all the changes and adds them including tables I specifically didn't want (like log tables) and had previously removed.  In the merge dialog I like that the changes are there but allow me to pick which change(s) I want - don't assume I want them all which is what it seemed to be doing.

    Al 
  5. Ady
    Admin
    Ady avatar
    589 posts

    Posted 05 Jun 2009 Link to this post

    Hello Alfred Ortega,

     To reproduce the use case you mentioned, I did ignore a few tables in the wizard (by clicking the 'Ignore' radio button) and added a column to a mapped table. After 'Merge' by ignored tables are still ignored.

     Is this how you ignored your unwanted tables?

    Sincerely yours,
    Ady
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Alfred Ortega
    Alfred Ortega avatar
    193 posts
    Member since:
    May 2005

    Posted 05 Jun 2009 Link to this post

    Okay I must have be doing something wrong, it's remembering the properties except for whatever is labeled as the "VersionField".  It is not listed as a member, property and the VersionField Attribute also gets wiped out.  Any ideas?
  7. Ady
    Admin
    Ady avatar
    589 posts

    Posted 08 Jun 2009 Link to this post

    Hi Alfred Ortega,

     You are right there. The wizard currently does not generate the version field and also overwrites the changes after the merge.
    Currently only the correct mapping entries to use it are generated. This is by design.
     We will be providing an option to generate the version field.

    As a workaround, you can add the field and Persistent attribute to the 'user' file (Classname.cs) but would need to remove the 'Persistent' attribute from the designer file if you regenerate the class.

    Best wishes,
    Ady
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
DevCraft banner