Skip to content

Codepolice

  • ⤫

Entity Framework Scaffolding: The type is not mapped issue

Posted by Judy Alvarez Posted on February 28, 2022March 3, 2022
0

This was a tricky one. I was just watching Scott Hanselman’s session from MIX 11 “Microsofts Web Stack Of Love” and as always the guys it brilliant. It’s like stand-up mixed with development. Anyway, he talked a bit about MVC Scaffolding and about how awesome it was. I fired up Visual Studio and installed MVCScaffolding via NuGet added some EF Models and boom! This was what I saw.

The type was not mapped. Check that the type has not been explicitly excluded by using the Ignore method or NotMappedAttribute data annotation. Verify that the type was defined as a class, is not primitive, nested or generic, and does not inherit from EntityObject.

Hmm, that was not what I expected. Turns out that I had not installed Entity Framework 4.1 completely. I found this post and I had the same problem. Just download Entity Framework from here and everything should work as expected. Now back to the session!

Categories: UncategorizedTagged: .net 6 mvc, .net core mvc architecture, .net core vs .net core mvc, .net mvc interview questions for 5 years experience, .net mvc with angular, asp .net mvc bootcamp, asp .net mvc life cycle, asp net and asp net mvc difference, asp net core web app vs mvc, asp net mvc bundling, asp net mvc create, asp net mvc image resize, asp net mvc sample, asp net mvc send email, asp net mvc source, asp net mvc two factor authentication, asp net mvc upload image, controller in asp net mvc, difference between .net core and .net mvc, download asp net mvc, download kendo ui for asp net mvc, filter and display data with asp net mvc, free asp net mvc hosting, interview questions for mvc .net, migrate mvc 5 to .net core, mvc application example asp net c# download, mvc latest version in net, net mvc dependency injection, pro asp net mvc 5 client adam freeman pdf download, why asp net mvc

Post navigation

Previous Previous post: Creating an empty/blank text widget for WordPress without additional markup and divs
Next Next post: MS SQL: Saving changes is not permitted if the table needs to be re-created

Related Posts

  • Debug and fix the z-index bug in IE6 and IE7

    Internet Explorer 6 and 7 has a really really annoying bug that makes it really hard to use z-index. I won’t go into any specifics about exactly what is causing this and so on because others have already done that. I just want to tell you that I found this awesome jQuery script that injects z-index that

    Posted by Judy Alvarez Posted on February 28, 2022March 3, 2022
    0
  • Signing a request to set up a custom Amazon CloudFront Distribution with C#

    I love most of Amazon’s Web Services (AWS). CloudFront is their CDN service and they have an awesome feature that lets you host your files on your server and then Amazon automatically grabs the files from your server and puts them on their CDN. This makes it possible to easily modify your files without having

    Posted by Judy Alvarez Posted on February 28, 2022March 1, 2022
    0
  • Use your IIS logs with WCAT

    I just want to write this down so I do not forget it. I found this article that describes how to convert your IIS logs to a script that you can run with WCAT. http://theether.net/kb/100128 I had to change the HOST header to the script that was generated. And as you can see you can

    Posted by Judy Alvarez Posted on February 28, 2022March 1, 2022
    0
  • SEO: How the Panda update affected AlternativeTo

    This Monday we noticed a sudden drop in traffic from Google.com on AlternativeTo.net. I and my colleague have tried to figure out why all week and finally we found the answer. In the Google Webmaster Blog, there is a post about how Google is deploying its new spam filter (named “Panda”) to all English-speaking markets. And that

    Posted by Judy Alvarez Posted on February 28, 2022February 28, 2022
    0
  • Issues when you upgrade WordPress plugins and core on ISS 7.5

    I have had lots of issues with upgrading WordPress plugins and the core WordPress engine on my IIS 7.5 server. The problem has been that you try to upgrade the plugin, you get a fail notice AND the plugin is simply disabled and you lose permission to the folder where the plugin was located. Then

    Posted by Judy Alvarez Posted on February 28, 2022March 1, 2022
    0
  • Using an external SMTP server to send mail via different addresses in Gmail

    There is an awesome feature in Gmail that makes it stand out from many other webmails and it’s that you can specify an external SMTP server so that you can send mail from other e-mails. I understand this is an advanced feature that not so many people use but it has a major flaw. If

    Posted by Judy Alvarez Posted on February 28, 2022March 3, 2022
    0
Judy Alvarez

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Codepolice

  • Github
  • Atlassian
  • Flatlogic
  • Xero
  • Jetbrains
  • Figma
  • Debug and fix the z-index bug in IE6 and IE7
  • Signing a request to set up a custom Amazon CloudFront Distribution with C#
  • Use your IIS logs with WCAT
  • SEO: How the Panda update affected AlternativeTo
  • Issues when you upgrade WordPress plugins and core on ISS 7.5

COPYRIGHT © 2022 - Codepolice