1 to 1, 1 to Many and Many to Many Relationships with EFCore in 2023

  Рет қаралды 19,236

ISeeSharp

ISeeSharp

Күн бұрын

Пікірлер: 30
@gabrielgrigore3431
@gabrielgrigore3431 Жыл бұрын
By far the best explanation, I've been looking everywhere for something this clear, thank you, subscribed
@pg_569
@pg_569 3 ай бұрын
Awesome video. Please make more videos.
@Ariyo-idowuBolaji
@Ariyo-idowuBolaji 7 ай бұрын
He is human guys... This is the human explanation of relationships for c# dev.. straight to the 4king point.. ayy.. big ups tho
@rafxjay
@rafxjay 2 ай бұрын
+1 Subscriber! good stuff!
@ImmoTheBest
@ImmoTheBest Жыл бұрын
Definitely the best explanation I have found. Thank you! Looking forward to more videos on this topic.
@steveb1307
@steveb1307 Жыл бұрын
At last getting my head around this. Thanks!
@zhyyv
@zhyyv Жыл бұрын
Thank you again! please continue with the videos please please!!
@ediblenecklace7007
@ediblenecklace7007 2 жыл бұрын
Great video! Looking forward to the next one
@iseesharp7475
@iseesharp7475 2 жыл бұрын
Thanks!
@teto3252
@teto3252 9 ай бұрын
Very helpful and easy explained! Thanks!
@piotrjakis1842
@piotrjakis1842 2 жыл бұрын
Keep going man. Nice video, very informative.
@iseesharp7475
@iseesharp7475 2 жыл бұрын
Thanks for the comment!
@kotto4416
@kotto4416 Жыл бұрын
Hi, just wanted to encourage you to keep making videos like that, it is a great content and I belive if you will continue on you will succeed :)
@iseesharp7475
@iseesharp7475 Жыл бұрын
Thank you for the kind words 🙂
@محمدالحامد-ث7ص
@محمدالحامد-ث7ص 8 ай бұрын
Thanks a lot
@paollarce5137
@paollarce5137 2 жыл бұрын
What if I need store extra information in the Image and Blog relationship table ?
@iseesharp7475
@iseesharp7475 2 жыл бұрын
If you want to add new fields? Then watch this video: kzbin.info/www/bejne/d2XXoXuvlMR_hJI
@davido459
@davido459 Жыл бұрын
good video
@tnielsen9041
@tnielsen9041 Жыл бұрын
bedre end gorm
@followerofchrist1984
@followerofchrist1984 Жыл бұрын
May you please show the database diagram? just to see if it shows the 1 to 1 relationship
@iseesharp7475
@iseesharp7475 Жыл бұрын
Hi! Here is a database diagram. A few extra fields on the user table but it shows the same structure imgbb.com/RQnqXY1
@jacques-oliveira-01
@jacques-oliveira-01 2 жыл бұрын
bravo!
@xdmilos1
@xdmilos1 Жыл бұрын
👍🏻
@nokibulislam9423
@nokibulislam9423 Жыл бұрын
Aren't we supposed to create a separate table for many to many relationship?
@iseesharp7475
@iseesharp7475 Жыл бұрын
Hi - In this example we have created a seperate table, the relationship is between the 'Blog' and the 'image' table. Then the 'BlogImage' table which connects the two allows any Blog to be related to multiple Images and any Image to be related to multiple blogs. If I've misunderstood your question please let me know - happy to help!
@nokibulislam9423
@nokibulislam9423 Жыл бұрын
@@iseesharp7475 Oh sorry, might have missed it. Is there any way you could review my entity design? I have started learning EF and as far as I have seen. We can just do ICollection on 2 entities to have many to many relationship. But by SQL standard we must create another joining table. I don't know which one is best, or it's about use cases.
@iseesharp7475
@iseesharp7475 Жыл бұрын
The BlogImage table was created automatically by entity framework when we defined a many to many relationship between the Blog class and Image class using the navigation properties.
@nokibulislam9423
@nokibulislam9423 Жыл бұрын
@@iseesharp7475 uh huh. This is what I read in EF docs, that EF automatically created joining tables. Right? I was confused because it didn't create for me. I will just have to debug my way through it I guess. Thanks for taking the time sir. You are the best, loving the community
@iseesharp7475
@iseesharp7475 Жыл бұрын
@@nokibulislam9423 Yeah as long as you have the ICollection in Blog and Image the join table should be created for you. Fell free to send me a github repo or pastbin if you need help. Thanks for the kind words!
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Entity Framework Core Part 11 - Relationships
21:26
Coding Tutorials
Рет қаралды 26 М.
Using Multiple EF Core DbContexts in a Single Application
17:46
Milan Jovanović
Рет қаралды 38 М.
Making Entity Framework Core As Fast As Dapper
13:17
Nick Chapsas
Рет қаралды 90 М.
ASP.NET Core Web API .NET 6 2022 - 3. Many-To-Many Relationships
12:03
20. Many-to-Many Relationships in Entity Framework Core
12:19
Ervis Trupja
Рет қаралды 38 М.
Entity Framework Migrations Explained
36:53
dotnet
Рет қаралды 33 М.
EF Core Many to Many relationships
16:18
Codewrinkles
Рет қаралды 13 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.