public void TestProxiesDirtyRowsOnly() { EmployeeCollection coll = new EmployeeCollection(); Employee e = coll.AddNew(); e.EmployeeID = 1; e.FirstName = "unchanged"; e.LastName = "unchanged"; e = coll.AddNew(); e.EmployeeID = 2; e.FirstName = "unchanged"; e.LastName = "unchanged"; e = coll.AddNew(); e.EmployeeID = 3; e.FirstName = "deleted"; e.LastName = "deleted"; coll.AcceptChanges(); coll[2].MarkAsDeleted(); e = coll.AddNew(); e.EmployeeID = 4; e.FirstName = "Added"; e.LastName = "Added"; EmployeeCollectionProxyStub proxy = new EmployeeCollectionProxyStub(coll); string qq = esDataContractSerializer.ToXml(proxy); }