Syncing DB and ORM Classes

Thread is closed for posting
2 posts, 0 answers
  1. Al
    Al avatar
    221 posts
    Member since:
    Oct 2006

    Posted 25 Jan 2010 Link to this post

    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.
  2. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 26 Jan 2010 Link to this post

    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.
Back to Top