title: Silverlight WCF access returning an IList of LLBLGen entities?
body: <p>I'm having a problem passing an entity collection back from LLBLGen to silverlight. My contract looks like this. I don't even know if this is possible.</p>
  
  <p>My web service code looks like this:</p>
  
  <pre><code>public IEnumerable&lt;WaterWorksCustomersEntity&gt; GetCustomer(long custId, string acctKey)
  {
      var toReturn = new WaterWorksCustomersEntity(custId, acctKey);
      using (var adapter = new DataAccessAdapter())
      {
          adapter.ConnectionString = "data source=CWCPROD.cwc.local;user.."; 
          adapter.FetchEntity(toReturn);
      }
      IList&lt;WaterWorksCustomersEntity&gt; customers = new List&lt;WaterWorksCustomersEntity&gt;();
      customers.Add(toReturn);
      return customers; 
  }
  </code></pre>
  
  <p>On the silverlight client I'm doing ...</p>
  
  <pre><code>var client = new Service1Client();
  client.GetCustomerCompleted += new EventHandler&lt;GetCustomerCompletedEventArgs&gt;(client_GetCustomerCompleted);
  client.GetCustomerAsync(2,"110865");
  </code></pre>
  
  <p>The compilation is failing with this error:</p>
  
  <blockquote>
    <p>Error 1 The type or namespace name 'ArrayOfXElement' does not exist in the namespace 'AppointmentClientSL.ServiceReference1' (are you missing an assembly reference?)  c:\work\Appointment\Appointment\AppointmentClientSL\Service 
    References\ServiceReference1\Reference.cs   63  54  AppointmentClientSL</p>
  </blockquote>
  
  <p>It looks like SL is not able to deal with the data the web service is returning.</p>
  
  <p>Can anyone help???</p>