December 2019
Intermediate to advanced
528 pages
11h 19m
English
Now that we have an empty database, let's fill it with some test data. To do this, we'll need to create a method that we will call after our database creation:

This class has an Initialize method that takes our ResearchContext as a parameter:
public static void Initialize(ResearchContext context)
context.Database.EnsureCreated();
Read now
Unlock full access