In Listing 12-1, I used LINQ to SQL to query the record whose CustomerID field is “LAZY” from the Northwind database Customers table and to return a Customer object representing that record. I then updated the Customer object’s ContactName property and saved the change to the Northwind database by calling the SubmitChanges method. That’s not much code considering it is also detecting concurrency conflicts and resolving them if they occur.
KeywordsVisual Studio Database Table Mapping File Impedance Mismatch Entity Class
Unable to display preview. Download preview PDF.