I got past some of my issues however the Deleting of records does not get propagated to the DB.
The user will select an Item in a List Control. The data for that item is displayed on the form. If the user clicks the delete button, the data is removed from the list box and the form no longer displays the data. All of this works fine. And I am trying in the code below to save the Entity Collection. If I close the form and then re0-open the form, the data I deleted appears - it was not deleted.
What do I need to do in code that I am not doing?
Private Sub BtnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnDelete.Click
EntityQual.RemoveAt(ListNames.SelectedIndex)
SaveQualEntity()
End Sub
Private Sub SaveQualEntity()
Try
adapter.SaveEntityCollection(EntityQual, True)
BindList()
Catch ex As Exception
End Try
End Sub