Restructuration
This commit is contained in:
20
Migrations/Configuration.cs
Normal file
20
Migrations/Configuration.cs
Normal file
@ -0,0 +1,20 @@
|
||||
namespace Hermes.Migrations {
|
||||
using System;
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Linq;
|
||||
|
||||
internal sealed class Configuration : DbMigrationsConfiguration<Hermes.Model.ModelContext> {
|
||||
public Configuration() {
|
||||
AutomaticMigrationsEnabled = false;
|
||||
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.
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user