View Single Post
  #4 (permalink)  
Old March 18th, 2015, 11:29 PM
oceanjams oceanjams is offline
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2015
Posts: 5
Thanks: 0
Thanked 2 Times in 2 Posts
Default

The code is wrong in the book.
You might not need to add the using planetwroxmodel, I didn't.

And in c# the line should be:

gridview1.datasource = authorizedreviews.tolist();

instead of

gridview1.datasource = authorizedreviews;

I'm using VS 2013. I think I used EF 5.0 instead of 6. If you add 6, you might get a different result. Also, but adding 6, it will be a pain to clear out off of the stuff it adds to your web.config file.
Reply With Quote