protected void AttachAndUpdateCustomerInstance(String customerID,
String contactName, String country, String companyName) {

NorthwindDataContext dc = new NorthwindDataContext();

Customer c = new Customer();
c.CustomerID = customerID;
c.ContactName = contactName;
c.Country = country;
c.CompanyName = companyName;

// Logick pznak k, e poloka byla zmnna.
dc.Customers.Attach(c, true);
dc.SubmitChanges();
}
