Entity Framework Core + Blazor - Tutorial for Beginners

preview_player
Показать описание
If you're a c# developer and you've not used it yet, you've probably heard of Entity Framework.

Entity Framework is an industry standard Object-Relational Mapping Framework for .NET that allows you interact with SQL through classes in C#, instead of directly executing queries against a database.

In this video, I take you through the basics of how EF can be used, with an example of it's implementation in Blazor.

Chapters:
00:00 What is EF Core and Why Would We Use It?
02:49 Installing EF Core
04:03 Creating a Db Context
05:42 DbContextFactory and Dependency Injection
07:56 Connection Strings / Creating the DB
12:05 DbSets and Models
15:55 Migrations
25:43 Relations
26:46 Create a Service for Interacting with the Context
30:13 Insert a New Record
33:10 End Example - Inserting a Customer to the DB via a Form
41:23 Save Changes to DB
43:32 Get Records from DB
47:00 Update Records within DB
50:19 Remove Records from DB

#dotnet #entityframework #entityframeworkcore #csharp #blazor #tutorial
Рекомендации по теме
Комментарии
Автор

I love the way you explain concepts with provided examples.
Probably one of the best videos I've seen in years, cheers! Subbed

aussieraver
Автор

I am a software engineer degree apprentice. This video is a gem, thank you mate!

Tc-hsrp
Автор

Thank you so much sir! That was a short and sweet video explaining some very important concepts. Honestly before this video I didn’t understood what was the point of using of Services . And now I understood that this is for data access and not to do it directly.

torrvic
Автор

Love it! I had a very difficult time understanding EF, your video helped me a lot to understand the basics !

mihaiflorin
Автор

I just got admission to a Software company and surprisingly the use of core and Blazor sever app. And to be sincere this is the best video on the internet for a fresh start I watch a couple more but this 🔥🔥🔥. Please can you do more EFC AND BLAZOR CONTENTS 🙏🏼🙏🏼🙏🏼

njilouis
Автор

You just saved me!! i am passing my blazor course thanks to you bless uu

dmzb
Автор

I just want to say thank you! Your video really helped me in the transition process in web app building.

laloystechtv
Автор

Great video! Really well explained and easy to follow.
I had a hard time understanding videos from others creators because they skip explaining the boilerplate stuff. I love the you take your time building each file instead of scaffolding everything.

klerpi
Автор

Thanks for the video, i like how you can see the SQL query in the output window. Would be nice if you showed how to CRUD or atleast create with the order model since its a foreign key

UnconventionalPotato
Автор

Great video, really made EF Core click for me.

happythepig
Автор

Great video really enjoyed your style and simple explanation of using ef in a blazor project 👍

pheonixman
Автор

Thx Nick. This is useful as a beginner. One question about the CustomerService method AddCustomer. We could also do it as async and call it AddCustomerAsync, correct ? Of course, the method signature would change to public async Action<IActionResult> AddCustomerAsync(), correct ? As a newbie, I am trying to understand when to use async/await and when not to.

codegeek-ilfm
Автор

Thanks for this, very clear instructions on EF that were very useful to me.

TheDuerden
Автор

Brilliant video, very helpful thank you! I'm just stuck on creating a method so I can output the input table data to a web page

GavinWMoloney
Автор

just finished the video, what a video. Keep it up

Tc-hsrp
Автор

Excellent video, very well explained!

urbanguest
Автор

This is a fantastic tutorial, thanks so much! I learned loads today.

wightknuckle
Автор

This is an excellent tutorial on EF Core. Good work!

twotinytrees
Автор

Very good video! You helped me to go forward with my masters thesis. Thank you very much :)

premaider
Автор

Good Video

Keep it up

What exactly you are trying to achieve here

Anything specific

Thanks

mdaslamknl