FluentMigration.Generator.PostgreSql
1.0.0
dotnet tool install --global FluentMigration.Generator.PostgreSql --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local FluentMigration.Generator.PostgreSql --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=FluentMigration.Generator.PostgreSql&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package FluentMigration.Generator.PostgreSql --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FluentMigration.Generator
Dotnet tool helps to create fluent migration file(fluentmigrator) from model class.
Install
dotnet tool install --global FluentMigration.Generator.PostgreSql --version 1.0.0
RUN
add-migration --c "Database Connection String" --a "Assembly Location"
Example
Model
[Table("Fruit", Schema = "public")] //required
public class Fruit
{
public Guid Id { get; set; }
public string Name { get; set; }
}
Output
using FluentMigrator;
using System;
namespace MigrationGenerator.PostgreSql.Migrations
{
[Migration(2022213193819558)] // created from timestamp
public class Migration_2022213193819558 : Migration
{
public override void Up()
{
Create.Table("fruit").InSchema("public")
.WithColumn("id").AsGuid().NotNullable().PrimaryKey()
.WithColumn("name").AsString(100).NotNullable();
}
public override void Down()
{
Delete.Table("fruit").InSchema("public");
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 268 | 2/13/2022 |