I have seen the [DebuggerNonUserCode]
and [ExcludeFromCodeCoverage]
attributes in resources and other SO questions about exlcuding code from coverage statistics, and wanted to know if it was possible to automatically add this attribute to the classes in the code generated by the Entity Framework using .NET 4.0.
Also would it need to be class level or could it be on the diagram.Designer.cs
level, needing one attribute for all code generated by that diagram?