Posted on: 8/10/2014 5:25:18 PM | Views : 385

I added the following DbSet to my database context
public DbSet<ItineraryDestination> ItineraryDestinations { get; set; }
and got a red squiggle under ItineraryDestination with the Type or namespace name error mentioned in the subject.
Now, the Using statement is present, the type spelling is correct, the namespace spelling is correct, and yet the error persists. Not just in this project but in any other projects where I try to introduce new entities. They simply don't get picked up on.
Even stranger, if I rename an already existing entity with (for instance) the same name and correct the spelling in the DbSet declaration to reflect this it is found!
It appears therefore that VS is ignoring any new additions to my Entities folder.
I'm totally at a loss. Can someone save me before I pull the last of my hair out?
...regards, Guy

Go to the complete details ...