I'm trying to develop a migration system for when the database changes. I'm using DevExpress XPO as my ORM so that I can target multiple database types.
For column additions, the ORM works fine - but when a column is removed it's a little more problematic.
The ORM doesn't remove columns from the database when it updates the schema - this is fine. However, so that I can migrate that data I'm looking to get the data from the column that still exists, but not on my object model.
I know that I could run a raw query over the connection, but that means targeting SQL against a specific database type - which is what I wanted to avoid while using this ORM.
I have been running into a brick wall trying to figure out how to get at this data, so I'm turning to the community for help. Any ideas?