How can I turn off static checks on my Linq2Sql code?
+1
A:
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.
Porges
2010-09-07 20:48:18
perfect, thanks
TT
2010-09-07 22:25:54