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 6994915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:57:13+00:00 2026-05-27T19:57:13+00:00

Having got a chunk of my application working with Entity Framework 4.1, I needed

  • 0

Having got a chunk of my application working with Entity Framework 4.1, I needed to add a couple more tables. I created the entities and associations in the Model Viewer and then ask it to generate the database from the model.

Immediately I get a selection of validation errors and a pop-up informs me that I must clear all validation errors before I can generate the database.

The errors in question are all along the lines of:

Error 11007: Entity type ‘EntityName’ is not mapped.

Or

Error 11008: Association ‘AssociationName’ is not mapped.

I get this error once for each new Entity and Association I have created.

Now I get that they are not mapped to the database yet, this seems quite logical as they are totally new to the model. That is why I’m trying to use the “Generate Database From Model” tools to generate the database.

Am I understanding correctly that I cannot generate a new database from the model because the new Entities and Associations I have added to the Model are not already in the database? If so, how do I work around this?

  • 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-27T19:57:14+00:00Added an answer on May 27, 2026 at 7:57 pm

    It transpired that ( as suggested in comments by hdv ) there was another error in the .EDMX file which was being lost amongst the Error Message noise. This related to a field that I had used to key an association and later deleted without realising that the association depended on it.

    The error message included a line in the .EDMX file so I closed it in the Model Editor and used Open With > XML Editor to open the source, find the relevant line and delete the association. This flagged up a few more errors where that association was referenced from elsewhere and after removing those I could open the file in Model Viewer again and it allowed me to create the database.

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

Sidebar

Related Questions

I've got a multi-user application having some critical data of the users. I am
I've got a prototype having a method I can add callbacks with: /* *
I've got an windows mobile 6.5 application I'm developing and am having trouble with
I am having a bug that has got me stumped. I created a label
Having read up on this question regarding working with USB devices, I got to
I got a PNG having multiple images encoded in it. How do I make
Got a crash report from a beta tester and I'm having trouble identifying the
I'm having the following problem: When I got two labels into each other: <Label
I'm having some inheritance issues as I've got a group of inter-related abstract classes
I've got the DTD for OFX 1.03 (their latest version despite having developed 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.