Here's an error I couldn't find listed elsewhere on the forums.
After completing all the instructions on p. 505-511, (actually even when completing the code on step 12), I get this error:
'PlanetWroxModel.Picture' is a 'type' but is used like a 'variable'
My code looks like Imar's in the book:
protected void EntityDataSource1_Inserting(object sender, EntityDataSourceChangingEventArgs e)
int photoAlbumId = Convert.ToInt32(Request.QueryString.Get("PhotoAlbumId"));
Picture myPicture = (Picture).e.Entity;
myPicture.PhotoAlbumId = photoAlbumId;
The line in bold red
immediately returns an error, as well as an error at runtime. What did I do wrong?