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

Updating the DB schema, columns are not deleted

1 Answer 39 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrea Nagar
Top achievements
Rank 1
Andrea Nagar asked on 25 May 2010, 09:56 AM
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

1 Answer, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 26 May 2010, 01:52 PM
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.
Tags
Databases and Data Types
Asked by
Andrea Nagar
Top achievements
Rank 1
Answers by
Ady
Telerik team
Share this question
or