Hermes/Migrations/Configuration.cs

19 lines
657 B
C#
Raw Permalink Normal View History

using System.Data.Entity.Migrations;
2020-11-30 00:19:37 +01:00
namespace Hermes.Migrations {
2020-11-30 00:19:37 +01:00
internal sealed class Configuration : DbMigrationsConfiguration<Hermes.Model.ModelContext> {
public Configuration() {
AutomaticMigrationsEnabled = true;
AutomaticMigrationDataLossAllowed = true;
2020-11-30 00:19:37 +01:00
ContextKey = "Hermes";
}
protected override void Seed(Hermes.Model.ModelContext context) {
// This method will be called after migrating to the latest version.
// You can use the DbSet<T>.AddOrUpdate() helper extension method
// to avoid creating duplicate seed data.
}
}
}