Visual Studio and SQL DB

As I am developing an app using Entity Framework to make queries against a SQL Server DB, how do I update (refresh) Visual Studio to see updates I have made directly to the database?
John DarbyPMAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
You can use something like:
YourContext.Refresh(RefreshMode.StoreWins, YourContext.YourEntityYouWantToRefresh);

Open in new window

Fernando SotoRetiredCommented:
If you are saying that you made schema changes to the database such as adding new columns to a table or added a new Table to the database then you can update the Entity Framework model by right clicking an empty area of the EDMX designer and selecting from the menu popup, Update Model from Database..., and using the Update Wizard that comes up.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
John DarbyPMAuthor Commented:
Thank you,  both! Most helpful!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.