Get Started with EntityFramework 7 with ASP.NET 5

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Great walk-throughs. Thank you so much for putting them together.
I've noticed other ASP.NET 5 examples use the [FromServices] DI attribute instead of getting in the constructor. Do you know if they are the same or why you'd use one vs. the other?

efhalsey
Автор

Create tutorial.

One thing you need to point out is that the localdb instance (i.e. "ProjectsV13") that you have used in your connection string isn't the default instance and therefore won't going to work with everyone. Running "dnx ef database update" will fail because of that.

So to fix this for me, I have change my connection string to the following instead:



Thanks Ajden.

FayezMutairi