We're now ready to seed our database. Since we hooked the
DbSeeder.SeedAsync to the
Startup class, it'll be as easy as hitting
and letting the application work its magic. If we have done everything correctly, our database should be populated in no time. In order to check that, we can:
dbo.Itemstable and select View Data.
Upon doing that, we should see something like the following:
Last but not least, we need to modify our
ItemsController to use the
ApplicationDbContext to retrieve data, getting ...