I’ve used mvcScaffolding and mvc3 to generate my tables in a sql2008 database. some data has been added.
I’ve changed a single model and wish to alter the underlying table.
- is there a way to auto-update a single table to keep it in sync with the model?
- after adding a new model how can the database table be created without recreating the database
You’re looking for something like Rails’ migrations. There are a couple .NET migrations providers floating around, but the basic setup you’ve described doesn’t support alterations to the schema without recreating the database (at least in my experience).