Blazor Server Full CRUD Operations From Scratch Incl. EF Core

  Рет қаралды 4,995

Codewrinkles

Codewrinkles

Күн бұрын

Using EF Core in Blazor Server has afew very important caveats and it's easy to get it wrong! In this video I'll show you how to use EF Core in Blazor Server the right way. But that's more to it! I'll show you how to do it by implementing full CRUD operationsin Blazor Server from scratch using, of course, EF Core.
Join this channel to get source code access and other perks:
/ @codewrinkles
Additional useful videos:
Why we need to use IDbContextFactory: • Using EF Core in Blazo...
Content
1.Intro: 00:00
2. Setting up models and DbContext: 00:40
3. Understanding IDbContextFactory: 01L49
4. Implementing ProductService: 03:03
5. EditProduct component: 05:52
6. AddProduct component: 12:11
7. ProductList component: 16:53
8. ProductDetails component: 23:23
9. Let's run the app! 26:05

Пікірлер: 20
@DustinDustin00
@DustinDustin00 4 ай бұрын
This is a terrific video, I love the style of just dropping in the code blocks and not watching you type everything.
@rafapioli75
@rafapioli75 7 ай бұрын
Great video! I got a lot of insights from your explanation. Thanks!
@Codewrinkles
@Codewrinkles 7 ай бұрын
Glad you found it useful
@AndersonSchmitt
@AndersonSchmitt 3 ай бұрын
Excelent video. Thanks for sharing.
@talkathiriify
@talkathiriify 6 ай бұрын
Thank you very much for awesome videos you always make.👍
@Codewrinkles
@Codewrinkles 6 ай бұрын
So nice of you
@sudidav
@sudidav 7 ай бұрын
Nice demo. 👌
@Codewrinkles
@Codewrinkles 7 ай бұрын
Thanks! 👍
@parko1965
@parko1965 6 ай бұрын
I would probably use a confirmation overlay for the delete action, but excellent tutorial.👍
@gherghinamihnea5294
@gherghinamihnea5294 7 ай бұрын
Good video ! Care to make a video on how to add unit tests and integration tests for this CRUD operations?
@Codewrinkles
@Codewrinkles 7 ай бұрын
From my point of view, there's nothing to unit test in CRUD operations. Integration tests might be indeed useful. I'd probably do that through the bUnit package. I don't promise anything about a video, but I'll have it in mind. Thanks for watching.
@Tamer_Ali
@Tamer_Ali 7 ай бұрын
Thanks Mr.Dan for the awesome video. Do you recommend a standalone components for Add and Edit instead of a single one for both of them?
@Codewrinkles
@Codewrinkles 7 ай бұрын
As said in the video, I prefer to have them separated. I know they might have a lot of similarities, but in realities they have different reasons for change. You need to change something for the adding part and it might break the edit part. or the other way around. Practical experience showed me that it's more maintainable to have them separate.
@Codewrinkles
@Codewrinkles 7 ай бұрын
Goes not only for Blazor components. But I'd do the same if I use Angular, React or other frameworks
@jorgerc4288
@jorgerc4288 3 ай бұрын
Thxs for sharing! Quick question, what would be the main raison why the Add Producto does not show the overlay? Btw, Im using the Componets folder to add all pages.
@JackyTheCoww
@JackyTheCoww 4 ай бұрын
is it advisable to create an interface for the services? such as IProductService?
@ruinenlust_
@ruinenlust_ 7 ай бұрын
Any plans for making videos on the new Blazor functionalities from .NET 8?
@Codewrinkles
@Codewrinkles 7 ай бұрын
Be sure of that :)
@gzuares
@gzuares 3 ай бұрын
using AddDbContextFactory How can I use db Transacctions as a unit of work?
@gzuares
@gzuares 3 ай бұрын
is there a github repository link for this project?
Repository pattern with EF Core and Blazor Server
20:06
Codewrinkles
Рет қаралды 6 М.
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 36 МЛН
Numeric data types
12:45
Codewrinkles
Рет қаралды 668
Create a database using Entity Framework Core in Blazor
16:44
CodeGanesh
Рет қаралды 3,9 М.
Build a Chat with SignalR & Blazor WebAssembly in .NET 8 🚀
23:01
School Mgmt App | Microservices With .NET Aspire & Blazor SSR | Part 7
2:48:21
Microservices Are Evil - Live Podcast with Bulent Karaahmed
1:26:30
Codewrinkles
Рет қаралды 1,4 М.
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30
Купил этот ваш VR.
37:21
Ремонтяш
Рет қаралды 292 М.
Samsung S24 Ultra professional shooting kit #shorts
0:12
Photographer Army
Рет қаралды 29 МЛН