PerformSelectEventArgs2 question

Posts   
 
    
Jeff M
User
Posts: 250
Joined: 04-Aug-2004
# Posted on: 20-Dec-2008 07:33:25   

Hello all.

I wanted to run the follow code within a separate process using remoting:


        public void PerformSelect (PerformSelectEventArgs2 e)
        {
            using (var adapter = new DataAccessAdapter())
            {
                adapter.FetchEntityCollection(e.ContainedCollection, e.Filter,
                        e.MaxNumberOfItemsToReturn, e.Sorter, e.PrefetchPath,
                        e.PageNumber, e.PageSize);
            }
        }

however, PerformSelectEventArgs2 is not serializeable.

Is this by design? Is there a work-around?

Thanks. Jeff

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 22-Dec-2008 10:41:08   

PerformSelect is an event of the LLBLGenProDataSource which should be used directly in the code behind of a webpage, why do you want to run it in a different process through remoting?

Jeff M
User
Posts: 250
Joined: 04-Aug-2004
# Posted on: 23-Dec-2008 15:22:29   

Walaa wrote:

PerformSelect is an event of the LLBLGenProDataSource which should be used directly in the code behind of a webpage, why do you want to run it in a different process through remoting?

Data access does not run in the same process. I wanted to send the PerformSelectEventArgs2 object to the remote data access procecss and return the EntityCollection. However, I understand now, that parts of the PerformSelectEventArgs2 (the PredicateExpression, perhaps) are not serializable.

Thanks for the response. Jeff