Package Description
$ dotnet add package dotnet-dnb-datamigration© 2025 DotNet Brightener
| Package | Version |
|---|---|
| DotNetBrightener.DataAccess.DataMigration | |
| dotnet-dnb-datamigration |
This CLI tool is a .NET tool which you can call from command line. It helps you to create a new data migration class in your project in case you use Data Migration package. Follow instruction in that package to install it to your project, and use this CLI tool to create new migration class when needed.
dotnet tool install --global dotnet-dnb-datamigration
At the root folder of your project where you want to have data migration, run the following command:
dotnet dnb-datamigration add [migration_name]
A new migration class will be created in the DataMigrations folder.
You'll need to follow instructions from Data Migration package to implement your migration class.