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:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.83.151