Quantcast
Channel: Remove doesn´t work
Viewing all articles
Browse latest Browse all 2

Remove doesn´t work

$
0
0

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


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images