title: Linq Sql Database Context MissingMethod
body: <p>I originally had a project that I use as a connection to my database but the issue is that when I added a new table that I just created to the dbml file via dragging the table from Server Explorer it seems to work but doesn't. Instead it just throws an error. </p>
  
  <p><strong>Code</strong></p>
  
  <pre><code> PIMDataContext dbContext = new PIMDataContext();
          foreach (var thing in dbContext.Product_NewProduct_Xrefs)
              Console.WriteLine(thing.ProductNumber);
          Console.Read();
  </code></pre>
  
  <p>PIM.dbml (the dbml I edited also the dbml the context above refers to)</p>
  
  <p><a href="https://i.stack.imgur.com/J9pcI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J9pcI.png" alt="enter image description here"></a></p>
  
  <p>And finally here is the error</p>
  
  <pre><code>Method not found: 'System.Data.Linq.Table`1&lt;PIM_DATA.Product_NewProduct_Xref&gt; PIM_DATA.PIMDataContext.get_Product_NewProduct_Xrefs()'.
  </code></pre>
  
  <p>What I checked already,</p>
  
  <ul>
  <li>Rebuild</li>
  <li>Restart VS2012</li>
  <li>Re-Import Database project</li>
  <li>Delete References and Re-add references</li>
  </ul>