title: Remove selected item from listbox but also database
body: <p>I have used Entity Framework to create a local database. Now I've created a form where I can add a person to a listbox and it also adds to the database. How do I remove the selected item from the listbox tho whilst also being removed from the database?</p>
  
  <p>The person is an object so I feel like I have to do something in the lines of:</p>
  
  <pre><code>Person person = new Person();
  var removeperson = new Person{
  
   " for loop for removing selected index"
  
  }
  
  Person.Remove(removeperson);
  </code></pre>
  
  <p>Something like that. I have a remove method in the Person class but I just dont know how to use it whilst also removing it from the list.</p>
  
  <p>I'm pretty new at C# so please let me know if I haven't given enough information for y'all to help me.</p>