title: EF Fault when retrieving data: wrong table name in SQL
body: <p>I have a simple <code>edmx</code> with 2 tables. The tables are related by a single <code>Navigation Property</code>. (1 to many).</p>
  
  <p>When I run my code I get an <strong>Exception: "Invalid Object Name dbo.Enquiries"</strong></p>
  
  <p>There is no <code>dbo.Enquiries</code> in the database (it is actually called <code>dbo.Enquiry</code>), so the error itself is self explanatory. <strong>But where is it finding that Name, and how do I fix it?</strong></p>
  
  <p><em>Edited to show code as requested.</em></p>
  
  <pre><code> var foo = (from  d in context.Dealerships
              join e in context.Enquiry
                  on d.Id equals e.DealershipId
              where (d.ParentBusinessId == id)
              select d).AsEnumerable();
  </code></pre>
  
  <p>Here is the sql that is generated.</p>
  
  <pre><code>  foo   {SELECT 
  [Extent1].[Id] AS [Id], 
  [Extent1].[BusinessName] AS [BusinessName]
  FROM  [dbo].[Dealerships] AS [Extent1]
  INNER JOIN [dbo].[Enquiries] AS [Extent2] ON [Extent1].[Id] = 
  [Extent2].[DealershipId]
  WHERE [Extent1].[ParentBusinessId] = @p__linq__0}   
  </code></pre>
  
  <p>But for the life of me I can't see where / how it is deciding to change the name Enquiry to Enquiries on the inner join.</p>