且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在插件中使用LINQ更新CRM 2011实体?

更新时间:2023-02-13 11:23:59

您必须将对象标记为已修改,以便将其提交到服务器. 请参见

You have to mark the object as modified in order to get it submitted to the server. See OrganizationServiceContext.UpdateObject (Entity)

您应该添加 crmContext.UpdateObject(contact);crmContext.SaveChanges();