c# - Issue mapping code first inherited navigation property -


when try generate database using codefirst inehrited navigation properties error:

error 0040: type point_countries not defined in namespace xx.xxx (alias=self).

i have 3 classes

public class pointbase {     public int pointid { get; set; }     public virtual point point { get; set; } }  public class point {     public int pointid { get; set; }     public dbgeography data { get; set; }      public virtual icollection<country> countries { get; set; } }  public country : pointbase {     public int countryid { get; set; }     public string name { get; set; } } 

afterwards, created entitytypeconfiguration point

internal class pointmap : entitytypeconfiguration<point> {     public pointmap()     {         hasmany(x => x.countries).withrequired(x => x.point).hasforeignkey(x => x.pointid);     } } 

i can't seem figure out why error shows up...