Code Contracts. How to suppress generated code warnings?

How to disable static checks of my Linq2Sql code?

+3
source share
1 answer

You can suppress static code checks by marking the class (s) in question with [ContractVerification(false)].

If your classes are generated partial, you can create another file in it with a different part (ial) and add it there so that it does not overwrite when restoring the code.

+5
source

Source: https://habr.com/ru/post/1763666/


All Articles