Are there any O/R mappers out there that will automatically create or modify the database schema when you update the business objects? After looking around it seems that most libraries work the other way by creating business object from the database schema.
The reason I’d like to have that capability is that I am planning a product that stores its data in a database on the customer’s machine. So I may have to update the database schema when a new version comes out.
Another requirement is that the mapper supports a file based database like SQLite or JET, not only SQL server.
I know XPO from Developer Express has that capability but I was wondering if there are any alternatives out there.
Thanks
SubSonic does what you need. It has a migration class to be use with sonic commander. I modified the code and put it in the startup of my apps, and have it check for version difference and upgrade automatically. This is how you need to setup it up:
//*Not sure why I need this line to make the code block working below
//
A table named SubSonicSchemaInfo will be added automatically by SubSonic to your db to help keep track of the db version.
It’s a long post, hope I didn’t missed anything