public partial class InitialCreate : DbMigration, IMigrationDataSeeder { public override void Up(){ // Some migration Code } public override void Down(){ // Some migration Code } public void Seed(DataContext context) { // Some seed code, the same as you would do in the Configuration Seed method context.SaveChanges(); } }