title: Entity Framework Delete Object Problem
body: <p>i am getting "The object cannot be deleted because it was not found in the ObjectStateManager". while Deleting object.</p>
  
  <p>here is codes ;</p>
  
  <pre><code>//first i am filling listview control.
   private void Form1_Load(object sender, EventArgs e)
      {
          FirebirdEntity asa = new FirebirdEntity();
  
          ObjectQuery&lt;NEW_TABLE&gt; sorgu = asa.NEW_TABLE;
  
          foreach (var item in sorgu)
          {
              ListViewItem list = new ListViewItem();
              list.Text = item.AD;
              list.SubItems.Add(item.SOYAD);
              list.Tag = item;
              listView1.Items.Add(list);
  
          }
  //than getting New_table entity from listview's tag property.
   private void button3_Click(object sender, EventArgs e)
      {
  
              using (FirebirdEntity arama = new FirebirdEntity())
              {
  
                 NEW_TABLE del = (NEW_TABLE)listView1.SelectedItems[0].Tag;
                 arama.DeleteObject(del);
                 arama.SaveChanges();
  
  
              }}
  </code></pre>