So trivial its almost not worth mentioning but...
I dislike having to cast to int in the PrefetchPath2 constructor so I just tried adding an additional constructor:-
public PrefetchPath2(Enum rootEntityType)
{
_rootEntityType = (int) Enum.ToObject(rootEntityType.GetType(), rootEntityType);
}
This seems to work, so I can now type:-
PrefetchPath2 prefetchPath = new PrefetchPath2(EntityType.ShipEntity);
Cheers
Simon