Followling the ASP.NET MVC Tutorials, Adding a Model, in the Chapter 1: Get Started with ASP.NET MVC3,
I re-started this tutorial with a new ASP.NET MVC 3 project, then created a Model class,
Game.vb and a
connectionString with our SQL Server 2008 database. Finally, I have successfully created a new
GameController
by working on the Tutorial, Accessing your Model's Data from a Controller.
The new project worked very well, I can open the ASP.NET MVC 3 page and add 2 new data by clicking the Create New link. The new data entered was displayed in the SQL Server 2008 database, as coded in th
connectionString of the Web.config file.
Marked as answer by wonjartran on May 24, 2012 04:05 PM
wonjartran
Participant
907 Points
1214 Posts
Re: Can not create a new Controller to access a Model class using ADO.NET Entity Framework 4.1
May 23, 2012 09:23 PM|LINK
Followling the ASP.NET MVC Tutorials, Adding a Model, in the Chapter 1: Get Started with ASP.NET MVC3,
I re-started this tutorial with a new ASP.NET MVC 3 project, then created a Model class, Game.vb and a
connectionString with our SQL Server 2008 database. Finally, I have successfully created a new GameController
by working on the Tutorial, Accessing your Model's Data from a Controller.
The new project worked very well, I can open the ASP.NET MVC 3 page and add 2 new data by clicking the
Create New link. The new data entered was displayed in the SQL Server 2008 database, as coded in th
connectionString of the Web.config file.
Yaniv Nabati
Member
2 Points
1 Post
Re: Can not create a new Controller to access a Model class using ADO.NET Entity Framework 4.1
Aug 14, 2012 01:25 PM|LINK
Hi,
i have the same issue (follow the MVC 4 tutorial) after i change the name of the connection string (web.config) from "MovieDBContext" to "DbContext"
it's work !
Good luck