Skip to content

Instantly share code, notes, and snippets.

@mikecole
Created October 29, 2013 19:49
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 mikecole/7221340 to your computer and use it in GitHub Desktop.
Save mikecole/7221340 to your computer and use it in GitHub Desktop.
Entity Framework Code-Based Migrations AddEmailToAuthor
namespace EntityFrameworkExtraMile.Web.Migrations
{
using System.Data.Entity.Migrations;
public partial class AddEmailToAuthor : DbMigration
{
public override void Up()
{
AddColumn("dbo.Author", "Email", c => c.String(maxLength: 50));
}
public override void Down()
{
DropColumn("dbo.Author", "Email");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment