XrmServiceContext svcContext; ... // select one and update var query = from c in svcContext.productSet where (c.ActivityId == id) select c; foreach(Product c in query) { c.LogicalName = "***"; // change logical name // change some fields svcContext.UpdateContact(c); svcContext.SaveChanges(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)