How to use EF 6 many-to-many with IDbContextFactory in Blazor Server

  Рет қаралды 3,223

Codewrinkles

Codewrinkles

Күн бұрын

Пікірлер: 13
@sridharsathya8719
@sridharsathya8719 2 жыл бұрын
Thanks. I was stuck doing updates in my many-to-many application. This video helped! Thanks again.
@Codewrinkles
@Codewrinkles 2 жыл бұрын
Glad it helped!
@kajmaring3333
@kajmaring3333 Ай бұрын
Thanks for the explanations. This helped me a lot! Can it be, that there is one thing on the Update function missing? If I want to remove an already checked tag, this doesn't actually work. The loop in the repository is only adding the tags but not checking if an already checked tag has been removed... Or am I missing something? Thanks again!
@salvatoregallo9866
@salvatoregallo9866 Жыл бұрын
Is it possible to use this without having IDbContextFactory? if so, can you tell me where i should look for a documentation please. Thansk for the video btw.
@warrenmachanik3269
@warrenmachanik3269 2 жыл бұрын
Thanks for the video, this and the others have help clarify so much for me. Is there a code repo for this? My class structure is complex, and after reading this may need to rewrite a lot. Are there any communities that can assist with these kinds of issues you would recommend?
@parko1965
@parko1965 Жыл бұрын
Two days I spent on this issue and came across this video. Thanks @Codewrinkles
@rcwest123
@rcwest123 2 жыл бұрын
Thanks for a great video! You covered a few of the Entity Framework challenges that I have been struggling with. Is the source code for this project available?
@Codewrinkles
@Codewrinkles 2 жыл бұрын
Glad it was helpful! Source code is not yet available. I am working on it.
@salvatoregallo9866
@salvatoregallo9866 Жыл бұрын
could you please shere your repository with us???
@parko1965
@parko1965 Жыл бұрын
He doesn't share his code unfortunately. Someone asked this a year ago.
@sandroriz
@sandroriz 2 жыл бұрын
Wonderful!! I knew you could manager the EVILNESS :-) Only a few questions: why in the GetAllProducts you have to use .AsNoTracking? And is the .AddTag method in the Product repository only a left experiment or is needed? Thanks again. As many other said, you're becoming the master of blazor server, and I hope it will bring even more subscribers and followers.
@Codewrinkles
@Codewrinkles 2 жыл бұрын
Thank you for your message. I'll try to answer your questions. 1. When we get the products it's just a query. We don't update the entities in any way. That's why it is best (in any application by the way) to use AsNoTracking to optimize the performance. The EF change tracker takes a lot of resources. 2. The AddTagMethod is not used in this video at all. It's however not a leftover. More like a foundation for a next video in which I'll dedicate more attention to different application types and some techniques and strategies that we can use to overcome the "evilness" of many-to-many by convention.
@tarktaro3861
@tarktaro3861 2 жыл бұрын
Awesome
Optimize Your EF Core Queries - Here's How
31:58
Codewrinkles
Рет қаралды 6 М.
Entity Framework Core + Blazor - Tutorial for Beginners
52:47
Nick Proud
Рет қаралды 21 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
CRUD with the Blazor Server Render Mode in .NET 8 🔥
50:27
Patrick God
Рет қаралды 14 М.
I'm Done With Content Creation!
14:39
Codewrinkles
Рет қаралды 3,3 М.
EF Core Many to Many relationships
16:18
Codewrinkles
Рет қаралды 13 М.
Почему ассемблер остается актуальным в 2025 году?  | Дмитрий Коваленко | #28
1:24:10
Организованное программирование | Кирилл Мокевнин
Рет қаралды 6 М.
20. Many-to-Many Relationships in Entity Framework Core
12:19
Ervis Trupja
Рет қаралды 38 М.
Ranking Java Features Added from Versions 8 to 21!
27:03
Tales from the jar side
Рет қаралды 11 М.
Write Faster SQL Queries With Dapper In .NET | Clean Architecture
11:06
Milan Jovanović
Рет қаралды 40 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН