I use EF Core (Code first) I need to make relation between 2 tables by ID and Type the following are my classes
public class Lead : BaseEntity {