Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4014630
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:31:12+00:00 2026-05-20T09:31:12+00:00

I have an entity framework model, and I noticed that one table, a usergroup

  • 0

I have an entity framework model, and I noticed that one table, a usergroup table is missing from the diagrams in the model file. This meant I could not modify it from the standard SQL calls to become part of the entity framework (i.e., to make a class file for it with entities).

I can see it under “entity sets” but not in the diagram. Every time I try to add, it doesn’t show it as an option to add in the “update model” menu. So I deleted it from Entity set, and then I finally saw it in ‘update model’. I added it. Still won’t show up on diagram (it just puts it as Entity Set, but doesn’t make a diagram for it).

After getting frustrated with it, I figured there was some foreign keys preventing it from being added. So I went to my sql manager, and deleted any foreign key from usergroup table.

So now, when I add in the model, it appears in the diagram! YES!

BUT, now compiler error 3002 saying models don’t match. “Potential runtime violation of table” saying the mapping is incorrect, but I don’t understand—there is no mapping there, there is nothing linking usergroup to anything.

Why is this happening? I checked other foreign keys and mapping properties and nothing maps to usergroup. Is it a bug in Visual Studio 2010?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:31:12+00:00Added an answer on May 20, 2026 at 9:31 am

    It is probably that the sections of the edmx file are out of sync or maybe parts are corrupt.

    You could try opening the edmx file in a text editor and check for any errors.

    You could also try removing that table, then opening the edmx file in a text editor and make sure that all references to that table have been removed.

    The mapping error is not between tables, it is between parts of the edmx file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an entity that maps to an external oracle table which is one
I have a stored procedure that I've mapped in my entity framework model (trying
I have a problem with the following Linq query using Entity Framework: from o
We have two Entity Framework queries, one with Include one with standalone query. Here
I need to have an entity that has two separate candidate keys where one
Using Entity Framework 4 and code first how would I create a model that
I'm using Entity Framework 4 and my model relationships are automatically generated from the
I am using Entity Framework with my website. To improve performance, I have started
Setting up ASP.net MVC with Linq2SQL or Entity Framework's context to have scaffolding work
So, I am using the Linq entity framework. I have 2 entities: Content and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.