This:
PrefetchPathElement2 prefetchDispatch = DispatchListEntity.PrefetchPathDispatch;
returns the folowing error:
Cannot implicitly convert type 'SD.LLBLGen.Pro.ORMSupportClasses.IPrefetchPathElement' to 'SD.LLBLGen.Pro.ORMSupportClasses.PrefetchPathElement2'. An explicit conversion exists (are you missing a cast?)
If I try this:
PrefetchPathElement2 prefetchDispatch = (PrefetchPathElement2)DispatchListEntity.PrefetchPathDispatch;
Then this line:
prefetchDispatch.SubPath.Add(DispatchEntity.PrefetchPathAddressDestination).SubPath.Add( AddressEntity.PrefetchPathZipCode).SubPath.Add(ZipCodeEntity.PrefetchPathAreaDefinition).SubPath.Add( AreaDefinitionEntity.PrefetchPathRegion);
returns:
The best overloaded method match for 'SD.LLBLGen.Pro.ORMSupportClasses.IPrefetchPath2.Add(SD.LLBLGen.Pro.ORMSupportClasses.IPrefetchPathElement2)' has some invalid arguments