Seeding the Database

We’re now ready to seed our Database. As we have hooked the DbSeeder.Seed() method to the Startup class, it’ll be as easy as executing our app once by pressing F5: this will be enough to let the seeder work its magic. If we did everything correctly, our Database should be populated in no time. In order to check that, we can follow these steps:

  1. Open the Server Object Explorer panel.
  2. Expand the nodes up to our TestMakerFree Database.
  3. Right-click on the dbo.Quizzes table and select View Data.

We should see something like the following:

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.