Cannot implicitly convert type 'ADDRESS' to 'API.Models.ADDRESS'?

26 views Asked by At

I recently updated Visual Studio from Update 2 to Update 4 and now I can't seem to assign my queries to model classes.

example:

ADDRESS get_address = db.ADDRESS.SqlQuery("SELECT * FROM dbo.[ADDRESS] where ObjectID = " + id).First();

Returns the error in the title.

1

There are 1 answers

0
James Burke On

I refreshed my model by updating model from database and refreshing the tables. The building the project resolved the errors.