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.
如何关闭我的 Linq2Sql 代码的静态检查?
您可以通过用 标记有问题的类来禁止对静态代码的检查[ContractVerification(false)]。
[ContractVerification(false)]
如果您生成的类是partial您可以创建另一个文件,其中包含另一个部分(ial)并将其添加到那里,因此在重新生成代码时它不会被覆盖。
partial