Adapter from WCF

Posts   
 
    
ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 05-Oct-2007 20:11:21   

I have the following code which sends a collection of customers via WCF to a client:

            
EntityCollection customers= new EntityCollection(new CustomerEntityFactory());
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
     adapter.FetchEntityCollection(toReturn, null);
}

On the client I get this colleciton via:


IEntityCollection2 myCustomers=  server.GetCustomers();

How do I fill?? the following customers collection with the customers in myCustomers

EntityCollection customers= new EntityCollection(new CustomerEntityFactory());

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 06-Oct-2007 04:31:01   

I think you could do that via serializing with a binaryFormater.. Here is the idea: http://llblgen.com/TinyForum/Messages.aspx?ThreadID=7568

David Elizondo | LLBLGen Support Team
ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 06-Oct-2007 13:24:36   

I'm looking more for how to get the same collection of customers on the client using the LLBL framework via WCF.

I can have the same assemblies on both the WCF server and the client.

I want to use it on the client and leverage the validators, security etc.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 07-Oct-2007 23:04:33   

How do I fill?? the following customers collection with the customers in myCustomers

I think this thread is related directly to this one (yours): http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=11492

David Elizondo | LLBLGen Support Team