I had the same issue. Turns out, you need the EntityFramework.dll reference (and not System.Data.Entity).
I just pulled it from the MvcMusicStore application which you can download from: http://mvcmusicstore.codeplex.com/
It’s also a useful example of how to use entity framework code-first with MVC.
More Related Contents:
- Why doesn’t Visual Studio code formatting work properly for Razor markup?
- One DbContext per request in ASP.NET MVC (without IOC container)
- Saving Many to Many relationship data on MVC Create view
- MVC project on VS2010 error : The project type is not supported by this installation
- Using Ajax.BeginForm with ASP.NET MVC 3 Razor
- Cascading drop-downs in MVC 3 Razor view
- Getting “A potentially dangerous Request.Path value was detected from the client (&)”
- ASP.NET MVC 3 client-side validation with parameters
- Should services always return DTOs, or can they also return domain models?
- ASP.NET MVC3 and Entity Framework Code first architecture
- MVC3 unobtrusive validation group of inputs
- Can’t Add View from Controller in VS 2015 : “There was an error running the selected code generator”
- Purpose of ActionName
- How to change type of id in Microsoft.AspNet.Identity.EntityFramework.IdentityUser
- ASP.NET MVC 3 Razor – Adding class to EditorFor
- Is there any good reason to use FormCollection instead of ViewModel?
- How to set ViewBag properties for all Views without using a base class for Controllers?
- Is it possible to create a generic @helper method with Razor?
- ‘Microsoft.SqlServer.Types’ version 10 or higher could not be found on Azure
- Razor actionlink autogenerating ?length=7 in URL?
- Possible bug in ASP.NET MVC with form values being replaced
- Is using ViewBag in MVC bad? [closed]
- Does Razor syntax provide a compelling advantage in UI markup?
- Route with Two optional parameters in MVC3 not working
- Strongly-Typed ASP.NET MVC with ADO.NET Entity Framework [closed]
- Razor Nested WebGrid
- Steve Sanderson’s BeginCollectionItem helper won’t bind correctly
- MVC3 Validation – Require One From Group
- Include all files in a folder in a single bundle
- Having issue with multiple controllers of the same name in my project