You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BookingDetail is an abstract class
There are different types of Booking Details
publicclassPoolGroupBooking:BookingDetail{}
publicclassDriveupBooking:BookingDetail{}
I want BookingDetails collection to be populated with the object of the appropriate derived type, based on BookingType column
I would like to use TPH for storing the different attributes of BookingDetail into one BookingDetail table. However, the discriminator is in the parent table Booking
Can i use polymorphic collections where the BookingDetails property gets filled with the appropriate concrete type based on the BookingType property
Can i use a column from a different table as a discriminator
Include provider and version information
EF Core version:5.0
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: (e.g. .NET 5.0)
Operating system:
IDE: (e.g. Visual Studio 2019 16.3)
The text was updated successfully, but these errors were encountered:
Wondering whether it is possible to achieve the below with efcore 5
BookingDetail is an abstract class
There are different types of Booking Details
I want BookingDetails collection to be populated with the object of the appropriate derived type, based on BookingType column
I would like to use TPH for storing the different attributes of BookingDetail into one BookingDetail table. However, the discriminator is in the parent table Booking
Include provider and version information
EF Core version:5.0
Database provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Target framework: (e.g. .NET 5.0)
Operating system:
IDE: (e.g. Visual Studio 2019 16.3)
The text was updated successfully, but these errors were encountered: