Join Richard Goforth for an in-depth discussion in this video Choose your approach, part of Accessing Existing Databases with Entity Framework Core.
- (Instructor) Now that we're connected,…we need to choose the approach that we're…going to take with Entity Framework.…There's several possibilities for how the…new application that you're working on is…going to relate to the existing database.…Generally though they fall into two categories.…The first is that the database will…drive changes to the application.…This is called Database First.…The second is that the application will…drive changes to the database.…This is called Code First.…When you choose Database First,…you'll re-scaffold the database models…as necessary.…
This means that you can't modify…the generated files.…When you need to make a change to the database,…you alter the database directly.…For instance with a script or with…Sql Server Management Studio.…You also run the risk of a change to your…database outside of your application such as…a new required column causing the application…to fail when a ride is made to that table.…In Code First you'll change the models…and the context directly rather than…
- Setting up your project
- Connecting to a legacy database
- Scaffolding an initial model and context
- Improving the model
- Updating properties and indexes
- Adding concurrency tokens and timestamps
- Creating complex relationships
- Working with non-Microsoft databases such as SQLite and PostgreSQL
Skill Level Intermediate
SQL Server 2014 Essential Trainingwith Martin Guidry3h 51m Intermediate
Microsoft SQL Server 2014: Backup and Recoverywith Martin Guidry1h 22m Intermediate
1. Get Started with EF Core: On Your Legacy Database
2. Improve the Model
3. Model Complex Relationships
4. Work with Non-Microsoft Databases
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.