Uz jsem to nasel, nevim jestli je to to nejlepsi resenni, ale funguje to.
public void SaveDeletedData(DataSet dsEPTSave)
{
OdbcDataAdapter ODBCA = new OdbcDataAdapter();
DataRow[] drB = dsEPTSave.Tables[B].Select(null, null, DataViewRowState.Deleted);
ODBCA .Update(B);
DataRow[] drA = dsEPTSave.Tables[A].Select(null, null, DataViewRowState.Deleted);
ODBCA .Update(A);
DataRow[] drA = dsEPTSave.Tables[A].Select(null, null, DataViewRowState.Added);
ODBCA .Update(A);
DataRow[] drB = dsEPTSave.Tables[B].Select(null, null, DataViewRowState.Added);
ODBCA .Update(B);
}
|