I was really pleased to see that in the Entity Framework tools they have the ability to update model from database. Simply right click the NorthwindModel.Store in the Model Browser and click the option to update.
You then have the ability to Add, Update or Delete items from your model.
However, not all is same it seems….
I created a model with all the tables from my database. I then later went back and removed all the entities apart from Customer, Order and Order_Details. After selecting to update my model, I unticked the Add checkbox as I didn’t want anything being added. I then wanted to uncheck the other tables which I wasn’t interested in but got the error “Items for update and delete cannot be checked or unchecked”, this was a bit odd but fair enough.
So I clicked finish and it added all of the removed entities back into my model! Not what I expected to happen at all.
To make matters worse, the column I dropped was still in my table! I tried to add a column and that didn’t appear either until I deleted and re-added the table.
Anyone have any ideas on the expected behaviour of this feature??