In EF Core 3.x it can be obtained for a given IEntityType using the GetDiscriminatorProperty method, e.g.
var discriminatorProperty = dbContext.Model
.FindEntityType(typeof(MyBaseEntity))
.GetDiscriminatorProperty();
Some other useful extension methods are GetDiscriminatorValue, GetDerivedTypes, GetRootType etc.
CLICK HERE to find out more related problems solutions.