Database Reference
In-Depth Information
var addressField =
addressPropertyInformation.GetValue(address, null);
// Find the same field in the database row
var field3 = newPayProperty.Where(x =>
(x.Name == addressName)).FirstOrDefault();
//Set the database row with the address field
value
field3.SetValue(newPayment, addressField,
null);
}
This code uses C# reflection to copy one field in an object created from XML to an object
mapped in a table row and then saved.
Search WWH ::




Custom Search