Code First Doesn’t Always Mean Staring with CodeWhen Not to Use the Code-First ApproachWhen to Use the Code-First ApproachCode First in an Existing ProjectCode First in a New Project Against a Mature DatabaseCode First in a New Project with a New DatabaseThe Benefits of a Well-Executed Code-First Development EffortAbility to Get Up and Running QuicklyA Complete Record of Database Changes in Source ControlDisaster RecoveryMigration Planning Leads to Safe Database ModificationsAgility When Needing to Revert to a Previous StateImperative Programming from a Declarative ModelImperative Cloud ArchitectureDeclarative Cloud ArchitectureIt’s Time to See Code-First Database Programming in ActionAdditional Thoughts About the ActivitiesActivity 3-1: Creating a New Code-First Project Against an Existing Database in EF Core 10 (EF10)Use the Starter Files or Your Files from Activity 2-1Task 1: Getting Started with the ActivityStep 1: Getting the Project Started for the ActivityStep 2: Establish a Local RepositoryStep 3: Review the DatabaseTask 2: Creating and Reviewing the Initial MigrationStep 1: Create the Initial MigrationTask 3: Review and Modify the Generated Initial MigrationStep 1: Review the Initial Migration and then Comment Out the Up Method and Delete the Code in the Down MethodStep 2: Delete the Code in the Down MethodStep 3: Run the UpdateStep 4: Review the DatabaseTask 4: Add a New Migration, Review It, Remove It, and Then Add a Real MigrationStep 1: Add a New Migration Without Making Any Changes, Review It, and Remove ItStep 2: Make a Code Change, Add a Migration, Update, and Review the DatabaseStep 3: Roll Back the Changes to a Previous VersionStep 4: Remove the Migration and Remove the Code ChangeActivity 3-1: SummaryActivity 3-2: Creating a New Code-First Project in EF Core 10 (EF10)Leverage the Starter FilesTask 1: Create the Inventory Item ModelStep 1: Create the Collection Item ModelStep 2: Add the StringLength Field Constraint to the Name ColumnTask 2: Create Your Item Table MigrationStep 1: Add the Item Model to the InventoryDbContext As DbSet<Item>Step 2: Create a Migration for the Items Table in the Inventory SystemTask 3: Update and Review the DatabaseStep 1: Update the DatabaseStep 2: Review the DatabaseStep 3: Make a Code Change, Add a Migration, and Remove a MigrationStep 4: Add a Migration, Update the Database, and Roll back the ChangesTask 4: Add Code to Insert and Query a List of ItemsStep 1: Add Items to Your DatabaseStep 2: Get Items from the DatabaseActivity 3-2: SummaryChapter SummaryImportant TakeawaysClosing Thoughts