locked
Remove doesn´t work RRS feed

  • Question

  • Hello everyone, 

     

    I hav a problem with removing a entity.

    I made a Button to remove the selectedItem from the Datagrid like this:

    DomainContext.table_worker.Remove(datagridWorker.SelectedItem);

    The row in the Datagrid is deleted.

    But After doing SubmitChanges the entity is back.

    And if I reload the Application the row is really deleted, like in the database.

     

    Can anyone help me?

    Best Regards

    Patrick

    Friday, October 16, 2009 6:54 AM