title: Linq-to-Entities query result that used params from multiple tables/Dbs
body: <p>Greetings Everyone <br/>
  I am using EF6 and VS13 Free Community. <br/>
  I followed a database First Approach. <br/>
  I currently have a project (<strong>.net mvc</strong>) that contains multiple databases and tables
  i am using the Entities &amp; Linq queries and i couldn't figure out how to use the result of the queries i create when it's inside an if statement i saw solution but it only works when i use a single table not multiple ones. <br/><strong>Example :</strong> <br/> </p>
  
  <pre><code>var query = from varA in db1.table_name
          from varB in db2.table_name
      where
      varA.X = varB.X
      select new
      {
        varA.stuff,
        varB.something
      }
  </code></pre>