• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1216
  • Last Modified:

Following MVC tutorial not working

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
DistillingExperts
Asked:
DistillingExperts
  • 3
1 Solution
 
DistillingExpertsAuthor Commented:
Instead of ContactSet I changed for Contacts. However, when it create the Index, it is not bringing the FirstName, LastName etc.
0
 
DistillingExpertsAuthor Commented:
..and I don't have a class Contact, only a table.
0
 
DistillingExpertsAuthor Commented:
Solved. It was missing for me to select "List" in View Content.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now