Reverse Mapping Woes

2 posts, 0 answers
  1. Jonathan Simmons
    Jonathan Simmons avatar
    106 posts
    Member since:
    Jun 2005

    Posted 24 Mar 2009 Link to this post

    Hi, having real problems with the reverse mapping wizard not updating config files. I have successfully generated the classes using the reverse mapping wizard. Some changes have been made to the database and the merge option of the wizard correctly identified the changes (which involved removing foreign keys are one table, renaming on field and foreign key, renaming one table and removing two tables). I ran the merge wizard and regenerated the classes. The classes representing the two deleted tables disappeared from the project as expected but rogue references were left in both app.config and reversemapping.config and references to the changes field name were not updated anywhere. Consequently, the project would not build.

    Is it really intended that the developer has to hand edit the config files to remove all these out-of-date references or should the merge function do this? It has now reached the point that I don't trust the merge and reverse mapping wizard to do as I might (reasonably) expect them to do. But perhaps I' missing something?

  2. Ady
    Ady avatar
    588 posts

    Posted 27 Mar 2009 Link to this post

    Hello Jonathan Simmons,

     We are sorry about that. There is a bug while merging renamed Foreign key references and that has been fixed now. The fix will be available in the next patch which is scheduled for next week.

     In the meantime you would have to remove the reference field from the class and the corresponding mapping from the config file.

    Your Telerik points have been updated

    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. DevCraft banner
Back to Top