title: Databind ListView datasource and joined tables
body: <p>I am not expert in ASP so i would be appreciated for the help. Issue connected to Entity FW, ListView Control, its Datasource and type convertion.</p>
  
  <p>I have the  following LINQ query :</p>
  
  <pre><code>RoutesEntities routesModel = new RoutesEntities();
  LocalesEntities localesModel = new LocalesEntities();
  ObjectQuery routesQuery = (ObjectQuery) from routes in routesModel.Routes
                                          join locales in localesModel.Locales
                                          on routes.LocaleID equals locales.LocaleID
                                          where locales.IsActive == true
                                          select new {
                                               LocaleID = routes.LocaleID,
                                               RouteName = routes.RouteName
                                          };
  
  AdminTopListView.DataSource = routesQuery;
  AdminTopListView.DataBind(); // this line cause the error
  </code></pre>
  
  <p>If there is no JOIN for tables all is OK. In all other cases i get the error says that there are 2 contexts for only one LINQ statement.</p>
  
  <p><strong>The questions are :</strong></p>
  
  <ol>
  <li>what types except ObjectQuery can be accepted by ListView datasource?</li>
  <li>how to convert Anonymous Type returned by LINQ to ObjectQuery?</li>
  </ol>
  
  <p>Thanks in advance.</p>