Data Seeding with EF Core

added by DotNetKicks
9/12/2018 11:09:16 AM

2 Kicks, 855 Views

One of the new EF Core 2.1 features is seeding of data. Contrary to the older version of Entity Framework, seeding with EF Core works together with migrations. This article shows how data seeding can be used with EF Core 2.1. Seeding Data in OnModelCreated With the first sample, I'm defining a simple Book type....