Reputation: 9565
How can I turn off static checks on my Linq2Sql code?
Upvotes: 3
Views: 709
Reputation: 30580
You can suppress checks on static code by marking the class(es) in question with [ContractVerification(false)]
.
If your generated classes are partial
you can create another file with another part(ial) in it and add it there, so it doesn't get overwritten when the code is regenerated.
Upvotes: 5