Answered Updates to the data model

  • 28. dubna 2012 18:55
     
     

    I'm new to LINQ and have a major question.  From what I've read it's difficult to update a LINQ to SQL class "project" (done by this method http://msdn.microsoft.com/en-us/library/bb384470.aspx) after the classes are created.  I have definitely not solidified my data model in SQL Server yet, but I do want to be able to start developing my WPF application.  Once I use the O/R Designer to drag tables from SQL Server Object Explorer onto the DBML page how would I go about updating the class when I add a column?  Worse yet, what if I do something more complex like change a column name, add a foreign key, change the columns in a primary key, etc?  I really like the idea of LINQ but I don't want to make extra trouble for myself.

    Thanks!

Všechny reakce