沒有人知道如何使用SDK for Dynamics CRM 2011將更改保存到後期綁定的實體?MS Dynamics CRM 2011 SDK - 使用後期綁定更新實體記錄
這是我已經試過:
// retrieve and modify a pet...
// (This part works)
Guid findId = new Guid("6CA57D73-30CC-E111-B155-00505630052F");
ColumnSet attributes = new ColumnSet(new string[] { "name", "foodtype" });
// try to retrieve
// (this also works)
pet = xrm.Retrieve("pet", findId, attributes);
if(pet!=null)
{
Console.WriteLine(String.Format("Retrieved pet {0} successfully!", pet["name"].ToString()));
// update attributes
pet["foodtype"] = "Seaweed";
// (from here doesn't seem to work)
// save pet
xrm.SaveChanges();
Console.WriteLine("Done!");
}
感謝所有幫助:)
這是否養有什麼錯誤? – 2012-07-12 16:10:19