sockscape/server_old/Migrations/Configuration.cs

30 lines
1 KiB
C#
Raw Normal View History

2017-07-22 19:27:41 +00:00
namespace SockScape.Migrations
2017-06-05 12:20:39 +00:00
{
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
2017-08-22 20:59:41 +00:00
internal sealed class Configuration : DbMigrationsConfiguration<DAL.ScapeDb> {
public Configuration() {
2017-06-05 12:20:39 +00:00
SetSqlGenerator("MySql.Data.MySqlClient", new MySql.Data.Entity.MySqlMigrationSqlGenerator());
AutomaticMigrationsEnabled = false;
}
2017-08-22 20:59:41 +00:00
protected override void Seed(DAL.ScapeDb context) {
2017-06-05 12:20:39 +00:00
// 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. E.g.
//
// context.People.AddOrUpdate(
// p => p.FullName,
// new Person { FullName = "Andrew Peters" },
// new Person { FullName = "Brice Lambson" },
// new Person { FullName = "Rowan Miller" }
// );
//
}
}
}