Skip to content

Instantly share code, notes, and snippets.

@ManfredLange
Created November 8, 2020 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ManfredLange/34d42b4210ccb7707ba6c073a10dace8 to your computer and use it in GitHub Desktop.
Save ManfredLange/34d42b4210ccb7707ba6c073a10dace8 to your computer and use it in GitHub Desktop.
using FluentMigrator;
namespace CmdLine.DataAccess.Migrations
{
[Migration(201109_0935)]
public class M201109_0935_AddTable_List : Migration
{
public override void Down()
{
throw new System.NotImplementedException();
}
public override void Up()
{
Create.Table("List")
.WithColumn("Id").AsGuid().PrimaryKey().NotNullable()
.WithColumn("Name").AsString().NotNullable()
;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment