User475983607 posted
This looks like a continuation from this thread. I guess you finally ran the code through the debugger.
https://forums.asp.net/t/2172889.aspx?DBcontext+SaveChanges+keeps+returning+0+when+updating+the+Employee+Salary
When I appy the following Linq Expression below , the error is coming
Invalid column name 'DepotModelDepotID'. In model and in Sqlserve table not using such column any where. We had a column before DepotId and we removed the column from model as well as from table . So there s not physically exist
that column anywhere in my project and database. Still showing the error message when I apply Linq expression in goemployee model. How can I fix this issue. Please help
var objIndexRecords = goContext.goEmployee.FirstOrDefault(x => x.EmployeeID == salary.EmployeeID);
My best guess is you did not follow openly published Code First standards. You removed the column and model property manually rather than invoking a migration. Doing so breaks Code First. It is difficult to provide a solution without
understanding the steps performed to get to this error.