Hello,
Probably an easy question, but I'm definitely new to this, so here goes.
Trying to execute the request shown on p. 49 of the text, where you go to the URL
http://localhost:44593/dinners/details/9999. I've double-checked my code against the sample source and the text and can't figure out what's wrong, but I'm getting this error:
"The specified default EntityContainer name 'NerdDinnerEntities' could not be found in the mapping and metadata information.
Parameter name: defaultContainerName"
in this section of code:
Code:
Line 37: /// Initializes a new NerdDinnerEntities object using the connection string found in the 'NerdDinnerEntities' section of the application configuration file.
Line 38: /// </summary>
Line 39: public NerdDinnerEntities() : base("name=NerdDinnerEntities", "NerdDinnerEntities")
Line 40: {
Line 41: this.ContextOptions.LazyLoadingEnabled = true;
I get into the constructor for DinnersController, and from there into DinnerRepository, but my constructor for NerdDinnerEntities fails...
My SQL Server database is up and running, I can browse the tables and see the data I've entered.
Any ideas?
Thanks,
Tony