I have a model created and DB created from the model.
When I right-click on any entity and choose: 'Retreive Data', I get an error:
Code: Select all
The result of model generation or query syntax is not valid.
Failed to compile and load the working library with the model.
Error List:
error1 : The type or namespace name 'DataAnnotations' does not exist in the namespace 'System.ComponentModel'
error2 : The type or namespace name 'Infrastructure' does not exist in the namespace 'System.Data.Entity'
error3 : The type or namespace name 'ModelConfiguration' does not exist in the namespace 'System.Data.Entity'
error4 : The type or namespace name 'DbContext' could not be found
error5 : The type or namespace name 'DbModelBuilder' could not be found
error6 : The type or namespace name 'DbSet' could not be found
Pat