using (var northwind = new NorthwindModel.NorthwindEntities()) {
String country = "Germany";

var germanCustomers =
(from c in northwind.Customers
where c.Country == country
select c).Take(4);

foreach (var c in germanCustomers) {
	Console.WriteLine(c.Display());
}

// Zde mnme instanci zkaznka v pamti.
Customers firstGermanCustomer = germanCustomers.First();
firstGermanCustomer.ContactName += " - Upraveno!";

var secondQueryForGermanCustomers =
(from c in northwind.Customers
where c.Country == country
select c).Take(4);

((ObjectQuery<Customers>)secondQueryForGermanCustomers).MergeOption =
MergeOption.OverwriteChanges;

foreach (var c in secondQueryForGermanCustomers) {
	Console.WriteLine(c.Display());
}
}
