A have an app with that uses an SQL database. The application is already released, but now I’m working on an update. In the update I’ve added an extra column in a table of my database.
I’ve create the database from my DMBL using DataContext.CreateDatabase() (not the other way around, as I found out to be the more common scenario later)
I there a facility in LINQ in which I can update my SQL database scheme?
No, sorry. I also would like to have such a facility. You have to upgrade your database by hand.
Here’s the Method:
Hint: After the initial release I never change my database schema with an tool. I always script that change and put that in my next update script.
Not that what you’ve asked, but it’s a practicable solution.
An UpdateScript may look like this:
** PSEUDOCODE**