Search code examples
c#visual-studioentity-framework-6codelens

Codelens ignores class


Why might Codelens ignore a class?

This class shows the Codelens mark up " 1 reference"

enter image description here

This class does not

enter image description here

I have tried cleaning and rebuilding I am using VS2017 with Resharper

both classes have a DbSet in the DbContext.


Solution

  • Sometimes due to cerculer references Codelens does not work properly.

    This link https://connect.microsoft.com/VisualStudio/feedback/details/809868/codelens-not-displaying-references

    may help you.

    Thanks