Jeremy Parker
Jeremy Parker

Reputation: 418

EF DB first update model from DB programmatically

I'm learning EF DB first, I have updated one table column and I found a solution from the official document to refresh the model.

Right-click anywhere on the design surface, and select Update Model from Database.

Is there a way to do this programmatically.

Upvotes: 0

Views: 48

Answers (1)

David Browne - Microsoft
David Browne - Microsoft

Reputation: 89091

Is there any programmatic solution to that?

No. There is no (common) scenario where updating the model from the database is useful without making manual changes to your code. So there would be little point in in automating that.

Upvotes: 1

Related Questions