I have my app and db on hosting. I can not delete database by myself, so I want to if model changes recreate only tables and database will not touch.
I see that somebody use sql command to delete table and create it new, but it is possible to just disable database delete and Code first script just delete table and create new ?
You’d probably have to create a custom DbInitializer, which knows how to drop any existing objects in your database. Instead, have you considered moving the EF Code First Migrations, now available in EF 4.3? See here for a walkthough.