Solved

Following MVC tutorial not working

Posted on 2011-02-15
3
1,198 Views
Last Modified: 2013-12-17
I am receiving the following error in the ContactSet on the tutorial below:
Error      1      'ContactManager.Models.ContactManagerDBEntities' does not contain a definition for 'ContactSet' and no extension method 'ContactSet' accepting a first argument of type 'ContactManager.Models.ContactManagerDBEntities' could be found (are you missing a using directive or an assembly reference?)      D:\Projects\ContactManager\ContactManager\ContactManager\Controllers\HomeController.cs      18      35      ContactManager


http://www.asp.net/mvc/tutorials/iteration-1-create-the-application-cs
0
Comment
Question by:DistillingExperts
  • 3
3 Comments
 

Author Comment

by:DistillingExperts
ID: 34898134
Instead of ContactSet I changed for Contacts. However, when it create the Index, it is not bringing the FirstName, LastName etc.
0
 

Author Comment

by:DistillingExperts
ID: 34898157
..and I don't have a class Contact, only a table.
0
 

Accepted Solution

by:
DistillingExperts earned 0 total points
ID: 34898298
Solved. It was missing for me to select "List" in View Content.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question