title: Entity Framework Self-Tracking and Client not tracking changes
body: <p>How come my client isnt tracking changes. My code below</p>
  
  <p>Server WCF with selftracking entities enabled</p>
  
  <pre><code> public class TrialService : ITrialService
  {
  
          public Project GetProjectByID(int _projectId)
      {
          var db = new TrialEntitiesService.FringeNETEntities();
  
          return db.Projects.Include("Items.SubItems").First(s =&gt; s.ProjectID == _projectId);
      }
  
      public Item UpdateItem(Item _item)
      {
          var db = new TrialEntitiesService.FringeNETEntities();
  
          _item.Actual = 100000;
          db.Items.ApplyChanges(_item);
          db.SaveChanges();
          return _item;
      }
  
  
  
  }
  </code></pre>
  
  <p>and client </p>
  
  <pre><code>    public MainWindow()
      {
          InitializeComponent();
          using (TrialServiceClient proxy = new TrialServiceClient())
          {
  
              radGridView1.ItemsSource = proxy.GetProjectByID(37).Items;
              return;
          }
      }
  
      private void button1_Click(object sender, RoutedEventArgs e)
      {
          using (TrialServiceClient proxy = new TrialServiceClient())
          {
  
              proxy.UpdateItem((Item)radGridView1.SelectedItem);
  
          }
      }
  }
  </code></pre>
  
  <p>I was assuming that the item in the first call would also be updated. isn't this what Self-Tracking entities achieves or am I missing the big picutre. </p>
  
  <p>If this isn't want Self-Tracking Entites is for then how would i best acheive this rather then manually find and modify the item from the first server call.</p>