Samples

Evolve ASP.NET Core

This sample demonstrates how to use Evolve to migrate a database in a ASP.NET Core environment.

You can find the sample based on file migration scripts here

And a sample using embedded migration scripts here

Key points
  • Different migration locations depending the environment (exclude db/datasets migration folder from production)
  • Use of Placeholders to replace a string ${table4} in a migration script (cf. V1_0_4__Create_table4_with_trigger.sql)
  • Use Microsoft.Extensions.Logging to trace Evolve activity
  • Ensure Evolve erase command is disabled
  • Use of Locations or EmbeddedResourceAssemblies depending the sample you have chosen.