title: Linq when we create object
body: <pre><code>public  bool DeleteLoc(int Location_Id)
  {
      DataClassesLocationDataContext dc = new DataClassesLocationDataContext();
  
      Location loc = dc.Locations.Single(u =&gt; u.Location_id == Location_Id);
      dc.Locations.DeleteOnSubmit(loc);
  
      dc.SubmitChanges();
      return true;
  } 
  
  
  public bool DeleteComp(int Company_Id)
  {
        DataClassesLocationDataContext dc = new DataClassesLocationDataContext();
  
        **Company com  = dc.Comp.Single(u =&gt; u.Location_id == Location_Id);**
  }
  </code></pre>
  
  <p>In this line it does not show like as Locations in previous code</p>
  
  <p>why it can not show</p>