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

Syncing DB and ORM Classes

1 Answer 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Al
Top achievements
Rank 1
Iron
Iron
Iron
Al asked on 25 Jan 2010, 02:49 PM
Hi,
I am new to ORM/Openaccess and have been evaluating after generating a class library from an existing database. I got the basics working but what I don't really understand is how to keep everything in sync, in my case my database design drives the design so I assume I would need to refresh my classes at some point to reflect the changes I have made in my db design?
Any input you could provide as to how this works and/or any other advice about using OpenAcces in this scenario will be much appreciated.

1 Answer, 1 is accepted

Sort by
0
Damyan Bogoev
Telerik team
answered on 26 Jan 2010, 06:54 PM
Hi Alwin Leibbrandt,

You can change your database schema as frequently as needed.  All you need to do is to merge the changes to have your class model and schema in sync. You should use the Schema Merge wizard in order to achieve this goal:
1. Run the Reverse Mapping wizard
2. Click on the Merge button. This will open up the Schema Merge Summary Dialog. The Schema Merge Summary dialog summarizes the result of the merge operation.
3. Click on Merge. This will merge the schema changes with the existing mapping changes made.
4. Click on the Generate & Save Config button to regenerate the persistent classes.
I think that will help you. If any other questions arise please contact us.

Greetings,
Damyan Bogoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Al
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Damyan Bogoev
Telerik team
Share this question
or