migration generation tool for Fluent migrations framework ( FluentMigrator )
- installation
dotnet tool install --global Fluent.Migrator.Generator
- command :
fluentgenerate nameofmigration
- creates a new directory in the current execution path named
Migrations
Example Result :
using FluentMigrator;
namespace Migrations
{
[Migration("07022022161738")]
public class nameofmigration : Migration
{
public override void Up()
{
}
public override void Down()
{
}
}
}