Entity Framework Core

EF Core Script Migration

In this tutorial let us explore the script-migration in EF core to generate SQL Scripts. We can execute these SQL Scripts in the production server to bring the database in sync with the model. This is very useful when you do not have direct access to the production server. The script migration has a –idempotent option which ensures that you do not accidentally execute the script twice. This tutorial assumes that you know how to create EF Core console app and also know about EF Core migrations

EF Core Script Migration Read More »

Seed Data in EF Core

Reverse Engineer Database First Script Migration EF Core Seed data means pre-populating the database with default data. This is useful in scenarios where you want to provide some test data in the development environment. You could use this to set up the application for the first time in a production environment by providing the sample or

Seed Data in EF Core Read More »

Scroll to Top