I'm dealing with an asp.net webform, so I'm not sure if my response will be of any use to you. Nevertheless, this is my response.
1. Delete the previous edmx file.
2. Eliminate the previous connection string.
3. Add the ado.net entity model once more and adjust the settings as previously.
4.Avoid deleting.tt files and attempting to alter code strategy generation.
rebuild the solution.
6. I think you would now see a number of mistakes regarding
... Change These two to Add and Remove by simply doing so (notice that for
Earlier, you might not have needed to write the table name, but for removal, you must do so).