Entity Framework 7 - Inheritance

preview_player
Показать описание
Two years ago, I told you Entity Framework Core didn't support Table to Concrete Type mapping. At last, I can eat my words.

Topics include:
- Entity Framework 7
- .NET 7 and C#
- Table to Hierarchy - TPH
- Table to Type - TPT
- Table to Concrete Type - TPC
- Avoiding nullable reference warnings in DbContext
- Following the Open Closed Principle in database design
Рекомендации по теме
Комментарии
Автор

Which features of Entity Framework 7 have you been looking forward to most? Let me know.
And if you liked the video, click the 👍.

CodingTutorialsAreGo
Автор

I like how clearly you made everything, thanks a million

niloomon
Автор

Thank you sir for going into EF new stuff and describing it, I liked the third option they gave us, and yes it contradicts the database normalization principles, but it's a case expected to happen, database normalization principles mentioned few cases when denormalization is a must.

PeacefulMindss
Автор

God bless your soul! U have no idea how much spaghetti you have helped me clean up.

BrendanAlexander
Автор

This is exactly what I was looking for. Thank you

matthewbaier
Автор

Thank you very much ! Awesome explanation!!

goverdhanjayaram
Автор

thanks a lot sir, you made it very clear

hearyourmood
Автор

Here we implicitly make 1:N relationship between Owner and Pets right?

iAndrewMontanai
Автор

Would this work with a one to one (twoway) relationship? e.g an abstract pet base class, with two subclasses (Dog and Cat), and then having the Pet class reference its Owner, and the Owner class reference a single pet? ... specifically one to one, I appreciate that in the real world an owner would have one to many pets, but I would like it to work with just one to one.

SirBenJamin_
Автор

Great video as usual. How about observablecollections for future videos?

after
Автор

how i make tpt with collection? i have several pictures related to a user and contract table, how could i dp a polymorphic associations with a collection?

haroldpepete