title: How update full object with linq to entities?
body: <p>I want update object with linq to entities, like this : </p>
  
  <pre><code>  public ActionResult SubmitPool(SwimmingPool Pool)
          {
  
              SwimmingPool IsPool = (from sp in db.SwimmingPool
                                     where sp.Id == Pool.Id
                                     select sp).First();
  
  
              if (IsPool != null) {
  
                  IsPool = Pool;
                    db.SaveChanges();
                  }
  }
  </code></pre>
  
  <p>But It doesn't...</p>
  
  <p>If I does : </p>
  
  <pre><code>  public ActionResult SubmitPool(SwimmingPool Pool)
          {
  
              SwimmingPool IsPool = (from sp in db.SwimmingPool
                                     where sp.Id == Pool.Id
                                     select sp).First();
  
  
              if (IsPool != null) {
  
                 ----&gt; IsPool.Name = Pool.Name;
                    db.SaveChanges();
                  }
  }
  </code></pre>
  
  <p>It does! But I want Update Full object. How do?</p>