I just downloaded MVC and I am going through a tutorial. Everything goes fine until I try to declare a DataContext object.
My dbml is named db.dbml (tried another on named test.dbml) and when I try this:
public dbDataContext db = new dbDataContext();
I get:
The type or namespace name ‘dbDataContext’ could not be found …
Am I missing something? In webforms this is all I had to do, and in the tutorial that is all that is shown. I downloaded the newest MVC today…
Thank you.
**EDIT: I am using VS2008 SP1
This is a sp1 bug if you are using partial classes, see the following and work-arounds: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=361577