sockscape/server/Migrations/Configuration.cs

33 lines
1.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-07-22 19:27:41 +00:00
internal sealed class Configuration : DbMigrationsConfiguration<SockScape.DAL.ScapeDb>
2017-06-05 12:20:39 +00:00
{
public Configuration()
{
SetSqlGenerator("MySql.Data.MySqlClient", new MySql.Data.Entity.MySqlMigrationSqlGenerator());
AutomaticMigrationsEnabled = false;
}
2017-07-22 19:27:41 +00:00
protected override void Seed(SockScape.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" }
// );
//
}
}
}