I have just started using EF and found it cool, but I ran into a problem,
I changed my DB schema of a column inside the table User, It was Varbinary(50) previously I then changed it into VarChar(50), and then inside the MyModel.edmx designer I chose "Update model from database", after clicking finish I received this error.
Error 2019: Member Mapping specified is not valid. The type 'Edm.Binary [Nullable=False,DefaultValue=,MaxLength=100,FixedLength=False]' of member 'Email' in type 'LearnDBModel.User' is not compatible with SqlServer.varchar [Nullable=False,DefaultValue=, MaxLength=50,Unicode=False,FixedLength=False]' of member 'Email' in type 'LearnDBModel.Store.User'.
Let me know how to fix it
I've run into similar issues before, and found that the way to solve it was to delete the table from the model. Save and close the model. Then reopen the model and re-add the table.
Shawn de Wet's solution works fine but In case you dont want to remove the table (for example relationship to some other tables..) you can use another solution: Open your edmx file with xml Editor, Ctrl + F to find a line similar to
Property Name="Email" Type="Binary" Nullable="false" MaxLength="50" FixedLength="false"
Update it to:
Property Name="Email" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false"
Save it and rebuild.