I have a TrackLog
that contains a collection of GPS points as a TrackPoint
object:
public class TrackPoint
{
public virtual int Id { get; set; }
public virtual List<TrackPoint> TrackPoints { get;set; }
}
public class TrackLog
{
public virtual double Latitude { get; set; }
public virtual double Longitude { get; set; }
public virtual DateTime Timestamp { get; set; }
}
TrackPoint
is a component and I've created an IAutomappingConfiguration
that tells FNH to map it as such. However, when I try to run my program, FNH spits out the following exception:
Association references unmapped class: TestProject.Components.TrackPoint
How do I map a collection of components?