I am having a weird issue with multiple navigation Properties to the same table.
My FuelBunkerType POCO class is configured like the following:
p
As you are configuring two one-to-may relationships between EventReport and FuelBunkerType and there is only one collection on the many side EF can't match the relationships. Depending on which relationship the collection property ActiveFuelTypes belongs to you can explicitly map it like this:
modelBuilder.Entity().
HasOptional(x => x.FuelBunkerType).
WithMany(e => e.ActiveFuelTypes).
HasForeignKey(x => x.IdFuelBunkerType);