Тёмный

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

ISeeSharp
Подписаться 670
Просмотров 17 тыс.
50% 1

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@gabrielgrigore3431
@gabrielgrigore3431 Год назад
By far the best explanation, I've been looking everywhere for something this clear, thank you, subscribed
@user-fg1kb8nh5s
@user-fg1kb8nh5s 3 месяца назад
He is human guys... This is the human explanation of relationships for c# dev.. straight to the 4king point.. ayy.. big ups tho
@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!
@julio11lp
@julio11lp Год назад
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 5 месяцев назад
Very helpful and easy explained! Thanks!
@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 🙂
@piotrjakis1842
@piotrjakis1842 2 года назад
Keep going man. Nice video, very informative.
@iseesharp7475
@iseesharp7475 2 года назад
Thanks for the comment!
@user-ym8pc6qb3l
@user-ym8pc6qb3l 4 месяца назад
Thanks a lot
@davido459
@davido459 Год назад
good video
@MrJQ3d
@MrJQ3d Год назад
bravo!
@paollarce5137
@paollarce5137 Год назад
What if I need store extra information in the Image and Blog relationship table ?
@iseesharp7475
@iseesharp7475 Год назад
If you want to add new fields? Then watch this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-A4tpHy__LN0.html
@tnielsen9041
@tnielsen9041 9 месяцев назад
bedre end gorm
@xdmilos1
@xdmilos1 8 месяцев назад
👍🏻
@followerofchrist1984
@followerofchrist1984 11 месяцев назад
May you please show the database diagram? just to see if it shows the 1 to 1 relationship
@iseesharp7475
@iseesharp7475 11 месяцев назад
Hi! Here is a database diagram. A few extra fields on the user table but it shows the same structure imgbb.com/RQnqXY1
@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!
Далее
Making Entity Framework Core As Fast As Dapper
13:17
Просмотров 86 тыс.
Get started with ENTITY FRAMEWORK in C#!
15:57
Просмотров 18 тыс.
Brutally honest advice for new .NET Web Developers
7:19
EF Core Many to Many relationships
16:18
Просмотров 13 тыс.
CRUD REST API With Clean Architecture & DDD In .NET 7
29:51
Entity Framework Migrations Explained
36:53
Просмотров 30 тыс.
I've been using Redis wrong this whole time...
20:53
Просмотров 356 тыс.