Thanks. I was stuck doing updates in my many-to-many application. This video helped! Thanks again.
@Codewrinkles2 жыл бұрын
Glad it helped!
@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 Жыл бұрын
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.
@warrenmachanik32692 жыл бұрын
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 Жыл бұрын
Two days I spent on this issue and came across this video. Thanks @Codewrinkles
@rcwest1232 жыл бұрын
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?
@Codewrinkles2 жыл бұрын
Glad it was helpful! Source code is not yet available. I am working on it.
@salvatoregallo9866 Жыл бұрын
could you please shere your repository with us???
@parko1965 Жыл бұрын
He doesn't share his code unfortunately. Someone asked this a year ago.
@sandroriz2 жыл бұрын
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.
@Codewrinkles2 жыл бұрын
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.