How to Use Entity Framework 6.x in Asp.Net 5 (MVC 6)

前端 未结 5 754
情书的邮戳
情书的邮戳 2020-12-08 10:20

I\'m testing out the new Asp.Net 5, using VS 2015 CTP-6. Because of the lack of features in Entity Framework 7, I would prefer using EF6 for now.

I\'ve tried removi

5条回答
  •  借酒劲吻你
    2020-12-08 11:12

    With the RC version, this becomes:

            var builder = new ConfigurationBuilder()
                .AddJsonFile("appsettings.json")
                .AddEnvironmentVariables();
            var Configuration = builder.Build();
            var connectionString = Configuration["Data:DefaultConnection:ConnectionString"];
    

提交回复
热议问题