title: MVC Entity Framework VB.net error on removerange
body: <p>I was given an alredy made project, I don't know if it is code or db first.
  My problem is that when I try to remove row from one table or from some other one, it tells me there is a reference with other table and it can't delete them.</p>
  
  <p>I can delete them from the db just fine so there must be something locking them in the code. If someone can give me any tip on where to look it would be helpfull, thank you !</p>
  
  <p>Here is a screen shot of my code:</p>
  
  <p><img src="https://i.stack.imgur.com/VhOS2.png" alt="one line is highlighted"></p>
  
  <p>Here is a screen shot of my database structure:</p>
  
  <p><img src="https://i.stack.imgur.com/79iW0.png" alt="enter image description here"></p>