Updating the DB schema, columns are not deleted

2 posts, 0 answers
  1. Andrea Nagar
    Andrea Nagar avatar
    2 posts
    Member since:
    May 2010

    Posted 25 May 2010 Link to this post

    I'm evaluating OpenAccess ORM and I noticed that if I delete a column from a table in the database and the I update the DB schema (I'm doing a reverse synchronization where I'm changing the object model from the DB table structure), it's the change is detected correctly but the column that now is missing from the db is not deleted.

    Is that a known bug?
    Thanks.
    Andrea
  2. Ady
    Admin
    Ady avatar
    589 posts

    Posted 26 May 2010 Link to this post

    Hi Andrea Nagar,

     Are you using the 'Reversemapping wizard' or the OpenAccess Domain Model (DSL designer) to generate your classes?
    If you are using the 'Reversemapping wizard', the deleted column is detected and the corresponding field is removed from the class. The wizard generates 2 files for each class - <classname>.cs which is generated only and has the property implementations and  - <classname.Telerik.OpenAccess.cs> which has the field declarations.
    You would need to manually delete/ comment the property implementation for the deleted field. We do not regenerate this file since it may contain user changes.

    Do let me know if you need further assistance.

    All the best,
    Ady
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
Back to Top