Skip to content

Instantly share code, notes, and snippets.

@blackneck
Created October 16, 2015 09:33
Show Gist options
  • Save blackneck/b79db386be33b719bd8a to your computer and use it in GitHub Desktop.
Save blackneck/b79db386be33b719bd8a to your computer and use it in GitHub Desktop.
public partial class Created_Edited : DbMigration
{
public override void Up()
{
AddColumn("dbo.Resumes", "Edited", c => c.DateTime(nullable: false, precision: 7, storeType: "datetime2"));
AddColumn("dbo.Resumes", "Created", c => c.DateTime(nullable: false, precision: 7, storeType: "datetime2"));
}
public override void Down()
{
DropColumn("dbo.Resumes", "Edited");
DropColumn("dbo.Resumes", "Created");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment