filmov
tv
C# - Impementing Inheritance - ASP.NET MVC with EF Core
Показать описание
Implementing inheritance is an important feature in OOP. With ASP.NET, inheritance is "translated" to table inheritance, where the "parent" table actually takes both the properties of its "children". And the "children" tables do not exist in the DB. Interesting, eh? The following points are mentioned in the video:
- Map inheritance to database
- Create the Person class
- Update Instructor and Student
-Add Person to the model
- Create and update migrations (although at the end the DB is deleted)
- Test the implementation
It is the continuation of these tutorials:
Microsoft.Com Tutorial:
Initial code (GitHub):
Code at the end (GitHub):
- Map inheritance to database
- Create the Person class
- Update Instructor and Student
-Add Person to the model
- Create and update migrations (although at the end the DB is deleted)
- Test the implementation
It is the continuation of these tutorials:
Microsoft.Com Tutorial:
Initial code (GitHub):
Code at the end (GitHub):