Error CS0246 The type or namespace name 'dataContextEntities' could not be found (are you missing a using directive or an assembly reference?)

B M-A 361 Reputation points
2022-08-01T21:58:21.337+00:00

Hello,

I modified one entity in edmx file and updated Model from database and after that I get many errors of this type :
Error CS0246 The type or namespace name 'dataContextEntities' could not be found (are you missing a using directive or an assembly reference?)

I don't know how to fix it and what reference is missing.
How to check what is missing or what is wrong?

Best regards,

Developer technologies | .NET | Other
Developer technologies | C#
0 comments No comments
{count} votes

Accepted answer
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2022-08-02T00:38:12.183+00:00

    Open the .edmx file as shown below, double click and see what the namespace is.

    226927-f1.png


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.