I've used entity framework in my projects and i used database-first approach almost in each time that i change the database ( adding/removing a field to existing table or add new table ) after updae the model , it's becaming unvalid and i receive some strange and irrational errors.
for example : Column 'XXX' specified as part of this MSL does not exist in MetaDataWorkspace
or
Error 10021: Duplicated Schema element encountered. or System.Data.Entity.Core.MappingException
and i must do some unrelated task such as
deleteing all tables from model , closing and reopening the visual studio , undo pending changes , deleteing all project data , etc ...
to releave these errors.
what's the problem ? did i do somethings wrong ?