Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1210
  • 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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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