Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个插件 PostEntityUpdate 必须在更新实体后调用。但是即使我只是将我的实体记录分配给另一个用户,也会调用这个插件。我分配时如何避免调用此插件?
您可以检查更新插件调用的消息来源。像那样:
IPluginExecutionContext pContext = context.ParentContext; if(pContext.MessageName == "Assign") return;