title: How to update DataContext based on changes in the database structure?
body: <p>I'm working in Visual Studio 2010 using linq-to-sql's <code>DataContext</code> which has several maps to tables in the database. Now when I change something to the structure of the database I noticed that the <code>DataContext</code> doesn't change and results in errors. The DataContext no longer corresponds with the structure of the database. I usually resolve this issue by deleting all table maps in the DataContext and drag&amp;drop them again from the Database Explorer in Visual Studio. I just feel that this is very cumbersome and that there must be a better way to do this? Is there a button or an option to update the DataContext automatically when I changed the database structure?</p>