I have been floundering around trying to figure out what use for a "data context."
Let's say my database is called "myDB_00" (in the server explorer it shows as ~\sql2008a.myDB_00.dbo).
The Global.asax file notes say that I should use a line such as:
Code:
DefaultModel.RegisterContext(typeof(YourDataContextType), new ContextConfiguration() { ScaffoldAllTables = true });
What I'm trying to figure out is what should replace "
YourDataContextType" in this line.
The book uses the data context "AdventureWorksDMDataContext" but there is no explanation as to where this term came from.
I tried "myDB_00DMDataContext" but the IDE underlines this in red and tells me that:
"the type or namespace name "myDB_00DMDataContext" could not be found(are you missing using directive or assembly reference?)"
What should I use as the data context?
Thanks
Ken