5. Adding Entity Framework Core (Ef Core) to an Asp.Net Core WebApi

preview_player
Показать описание
In this fifth video of the series we move one step further and add Entity Framework Core (Ef Core) to our #AspNetCore Web API. Here you'll find a complete walkthrough of all required steps to have a minimum viable data access layer in you Asp.Net Core Web Api.
#EfCore #DotNet

Chapters:
1. Intro: 00:00
2. Installing EF Core NuGet packages: 01:10
3. Creating the DbContext class: 05:55
5. Registering the DbContext in the DI container: 10:31
6. Migrations and database updates: 13:57
7. Injecting the DbContext in controllers: 20:52
8. Running and testing the API: 29:00
Рекомендации по теме
Комментарии
Автор

I wish I had found this sooner. Everything u said, was clear and I understood it properly. should have watched this from the start.

lordstark
Автор

Thank you. I was not finding what I needed for core 3.1. This was very helpful.

rvtyler
Автор

thank you for the effort and the content sir

mouradaissani
Автор

Hi
Do you recommend the repository pattern? Or to use dbContext in the service layer.

shahramamiri