If it is EF7 DbContext, in asp.net 5.0 project configure as:
services.AddEntityFramework()
.AddSqlServer()
.AddDbContext(options =>
options.UseSqlServer(Configuration["Data:DefaultConnection:ConnectionString"]));
How about configure the connectionstring for EF6 DbContext?
BTW, in previous projects, only need to add connectionStrings element in app.config or web.config. But set in web.config of asp.net 5.0 project, it still
does not work. It will use the default like below:
"Data Source=.\\SQLEXPRESS;Initial Catalog=connectionStringName;Integrated Security=True;MultipleActiveResultSets=True"