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

Forward Mapping tool not working?

4 Answers 86 Views
Design Time (Visual Designer & Tools)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David Hufford
Top achievements
Rank 1
David Hufford asked on 28 Jun 2009, 05:03 PM
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??

4 Answers, 1 is accepted

Sort by
0
David Hufford
Top achievements
Rank 1
answered on 28 Jun 2009, 05:11 PM
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.
0
David Hufford
Top achievements
Rank 1
answered on 28 Jun 2009, 05:16 PM
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
0
David Hufford
Top achievements
Rank 1
answered on 29 Jun 2009, 12:36 AM
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.
0
Ady
Telerik team
answered on 02 Jul 2009, 11:45 AM
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.
Tags
Design Time (Visual Designer & Tools)
Asked by
David Hufford
Top achievements
Rank 1
Answers by
David Hufford
Top achievements
Rank 1
Ady
Telerik team
Share this question
or