Linq and Windows Workflow Foundation

I'd need to pass a Linq object to a workflow built upon WWF, but IQueryable class is not marked as serializable.

Can anybody suggest me a valid workaround?

Thanks

[182 byte] By [cobain81] at [2007-12-27]
# 1
IQueryable is INTERFACE not a class

fact that IQueryable is not [Serializable] attributed does not mean that class that implements IQueryable can not be [Serializable] attributed

rad9k at 2007-9-4 > top of Msdn Tech,Visual Studio Orcas,LINQ Project General...
# 2

Except that Expression isn't serializable, either.

One of the problems in serializing expressions involves the question of how to serialize (object) references, and references to methods that may not exist on the remote end. Decide how you want to deal with that, and you could create a class to serialize the expression trees in a way suitable to your needs.

KeithFarmer at 2007-9-4 > top of Msdn Tech,Visual Studio Orcas,LINQ Project General...
# 3

I was wrong, I meant Expression.

Thanks Farmer for your help.

cobain81 at 2007-9-4 > top of Msdn Tech,Visual Studio Orcas,LINQ Project General...

Visual Studio Orcas

Site Classified