Hi Ian,
This is a get-only property. You don't need to write it, as normally you do one of two things:
- Set the property somewhere else (Page_Load, for instance). Then at PerformSelect you simply pass the e.PrefetchPath param.
_myLLBLGenProDataSource.PrefetchPathToUse = ...
adapter.FetchEntityCollection(e.ContainedCollection, null, e.PrefetchPath);
- At PerformSelect event handler, create a new PrefetchPath object and pass it to the fetch call:
protected void myLLBLGenProDataSource_PerformSelect(object sender, SD.LLBLGen.Pro.ORMSupportClasses.PerformSelectEventArgs2 e)
{
PrefetchPath myPrefetchPath = new PrefetchPath(...);
myPrefetchPath.Add(...);
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
adapter.FetchEntityCollection(e.ContainedCollection, null, myPrefetchPath);
}
}
So, there is no need to write this event param.