• Latest Posts

  • Latest Comments

  • Archives

EF and Code Analysis

Headline: I sure wish that Code Analysis would recognize Entity Framework (EF) files as auto generated.

This morning I was up early and thought I’d get rid of some of the warning in my code from Code Analysis…

There is a tab in the project properties that allows you to “Suppress results from generated code”. I sure wish that files that are auto generated using the Entity Framework would be generated in a fashion that would allow that to be honored. I don’t always have control over the names of items in the database and should not have to suppress all those messages every time I regenerate the file.

I’ll look around some more… I know the FxCop team has a great blog site: http://blogs.msdn.com/fxcop/

Leave a Comment