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.
生成上下文时,我看到有一些扩展方法:AcceptChanges、MarkAsAdded、MarkAsDeleted、MarkAsModified。我什么时候应该使用这些方法,因为它们仅在服务上可用?
它们在客户端上也可用 - 确保您已在文件开头包含它们的命名空间。如果没有,智能感知将不会为它提供建议,因为这些是扩展方法。
通常,你在客户端引用同一个项目,你也应该有这些方法。当然,您会在适当的时候使用它们。