Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# Entity Framework Migrations Getting Started with Using Migrations Adding Our First Migration

Code first migrations

Does code first migrations only works with "Code first"? I normally never use code first because I design my database using sql server and import them into visual studio via EF. I think this mode is called Data base first. My question is... Do I need "Code first migrations" with my 'data base first'? Maybe I did not understand the purpose of code first migrations. If I am mistaken, please explain me the usefulness of first code migrations over data base first.

EDIT : I got the concept, but I am still confused, I will ask this question. What if I am using Data base first and my database suffer changes, what could I do? because code first migrations is exclusive for code first.