I am trying to extract a table from a database using Entity Framework and keep running into this eror:
System.Data.Entity.Core.EntityCommandExecutionException HResult=0x8013193C Message=An error occurred while executing the command definition. See the inner exception for details. Source= StackTrace:
Inner Exception 1:
MySqlException: Table 'justadatabase.justadatabase.justatable' doesn't exist
I have the table in the database and the Entity framework is able to extract the model from the Database using DBFirst feature. I have unchecked the ForeignKey option.
Firstly I had to manually open the connection by including the dbE.Database.Connection.Open() in the controller. It has worked for me before without this, I am not sure what the problem is.