using EF6_Code_First.Migrations; using System; using System.Data.Entity; using System.Linq; namespace EF6_Code_First { public class FlughafenModell : DbContext { // Your context has been configured to use a 'FlughafenModell' connection string from your application's // configuration file (App.config or Web.config). By default, this connection string targets the // 'EF6_Code_First.FlughafenModell' database on your LocalDb instance. // // If you wish to target a different database and/or database provider, modify the 'FlughafenModell' // connection string in the application configuration file. public FlughafenModell() : base("data source=(local);initial catalog=FlughafenDB;integrated security=True;MultipleActiveResultSets=True;") { Database.SetInitializer(new MigrateDatabaseToLatestVersion()); } public virtual DbSet Lands { get; set; } } }