zhaw-dnet2/Tasks/Lab9/EntityFramework/EF6_Code_First/Migrations/Configuration.cs

25 lines
735 B
C#
Raw Normal View History

2024-06-06 18:56:52 +00:00
namespace EF6_Code_First.Migrations
{
using System;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
internal sealed class Configuration : DbMigrationsConfiguration<EF6_Code_First.FlughafenModell>
{
public Configuration()
{
AutomaticMigrationsEnabled = true;
AutomaticMigrationDataLossAllowed = true;
}
protected override void Seed(EF6_Code_First.FlughafenModell 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.
}
}
}