Forward Mapping tool not working?

5 posts, 0 answers
  1. David Hufford
    David Hufford avatar
    9 posts
    Member since:
    Jun 2009

    Posted 28 Jun 2009 Link to this post

    Hi,
    I've used open access before and don't recall having this problem.  Perhaps I never noticed it since I was using mainly reverse mapping.

    1. I create A class, Customer, and use the forward mapping tool to change the table name and some column names.
    2. Generate the DB.  Looks good
    3. Create another class, Address and mark it as persistent.
    4. Clean the project and rebuild
    5. ** Go to the Forward Mapping tool.  Address does not appear
    6.  Add a few properties to the Customer class.
    7. Clean, rebuild
    8. ** Go to the forward mapping tool.  The new properties for Customer are not visible.

    Am I missing something??
  2. David Hufford
    David Hufford avatar
    9 posts
    Member since:
    Jun 2009

    Posted 28 Jun 2009 Link to this post

    MORE INFO:

    In the forward mapping tool, if I click on the Persistent node in the tree, both Company and User are shown on the right hand side. I can modify the User setting there.

    At that point it does add the User information to the app.config file. I can then update the DB.

    Even after updating the DB, the User Class/Table never appears under the Persistent node in the tree.  This is important because I can't alter all the setting for the properties/columns and join tables.

    I suppose I could probably edit the app.config file, but I would really rather avoid that.
  3. DevCraft banner
  4. David Hufford
    David Hufford avatar
    9 posts
    Member since:
    Jun 2009

    Posted 28 Jun 2009 Link to this post

    SETUP INFO:
    VS 2008 with latest updates
    Xp sp3
    Current version of OA - just downloaded from the web on thurs 25 june 2009
    Using VB
  5. David Hufford
    David Hufford avatar
    9 posts
    Member since:
    Jun 2009

    Posted 28 Jun 2009 Link to this post

    SOLVED -MOSTLY.

    It turns out there is a small refresh button right above the tree!  It also turns out I am blind.

    I'm still curious as to why it sometimes picks up changes and sometimes does not, but not curious enough to dig into it.
  6. Ady
    Admin
    Ady avatar
    588 posts

    Posted 02 Jul 2009 Link to this post

    Hello David Hufford,

     The Forward mapping dialog collects the Persistent model information from the source files and compiles the metadata. If you add a new class or make other changes to the model (remove,rename class/field etc) the Forward mapping would need to 'listen' to every single change made in the editor and update accordingly. This would considerably slow down the development experience.
    Hence the 'Refresh' button. Refresh collects all the information available at that moment and again compiles the metadata.

     Hope this answers your question.

    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