Northwind nw = new Northwind(Connections.ConnectionString);
nw.Log = Console.Out;

Customer deserializedCustomer;
using (XmlTextReader reader = new XmlTextReader(new StringReader(xml))) {
deserializedCustomer = (Customer) dcs.ReadObject(reader, true);
}
nw.Customers.Attach(deserializedCustomer, customer);
Console.WriteLine(
"ContactName pvodn={0}, aktualizovan={1}\n",
customer.ContactName,
deserializedCustomer.ContactName);

nw.SubmitChanges();
