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:
C# - Get started - ASP.NET MVC with EF Core ( • C# - Getting Started - ASP.NET MVC wi... )
C# - Implement CRUD Functionality - ASP.NET MVC with EF Core ( • C# - Implement CRUD Functionality - A... )
C# - Add sorting, filtering, and paging - ASP.NET MVC with EF Core ( • C# - Add sorting, filtering, and pagi... )
C# - Migrations - ASP.NET MVC with EF Core ( • C# - Migrations - ASP.NET MVC with EF... )
C# - Create a complex data model - ASP.NET MVC with EF Core ( • C# - Create a complex data model - AS... )
C# – Read related data - ASP.NET MVC with EF Core ( • C# – Read related data - ASP.NET MVC ... )
C# – Update related data - ASP.NET MVC with EF Core ( • C# – Update related data - ASP.NET MV... )
C# - Handle concurrency -ASP.NET MVC with EF Core ( • C# - Handle concurrency -ASP.NET MVC ... )
VitoshAcademy.com:
https://www.vitoshacademy.com/c-imple...
Microsoft.Com Tutorial:
https://docs.microsoft.com/en-us/aspn...
Initial code (GitHub):
https://github.com/Vitosh/ASP/tree/ma...
Code at the end (GitHub):
https://github.com/Vitosh/ASP/tree/ma...