View Single Post
Old October 3rd, 2015, 12:33 PM
Grodnik Grodnik is offline
Authorized User
Points: 91, Level: 1
Points: 91, Level: 1 Points: 91, Level: 1 Points: 91, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2015
Location: rural Minnesota
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default Publishing with EF??

I published working code to a web server. The code that uses regular connection strings works fine. The code that uses EF gets compile errors. I created a new database on the webserver using the SQL query I used to create the test database. I built the EF model directly on the web server. I had to change the name of the database itself and the entity and model are different, but everything else is the same.
Specifically, I get a compile error with an AddEdit page essentially like p 583.
Everything appears to be OK up to myEntities.AddToReviews(myReviews). It doesn't recognize AddToReviews. Where do I look to find the problem? Thank you.