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#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Karen Payne MVP 35,596 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.