如何从数据集/数据库中删除特定行?

时间:2018-08-28 10:43:49

标签: c# dataset

我有一个数据集,其中包含有关某些员工的信息,并且我正在使用以下代码从数据库/数据集中删除一行。但是,如下所示,我的代码到目前为止还没有成功。任何建议:

_dsEmployee.SelectTEmployee(_PKEmployee);

            _dsMergeEmployee.SelectTEmployee((int)(_lvEmployee.SelectedItems[0].Tag));


            _dsEmployee.TEmployee[0].IPERSIMId = _dsMergeEmployee.TEmployee[0].IPERSIMId;
            _dsEmployee.TEmployee[0].FKEmployeeCat = 1;
            _dsEmployee.Update();


            MessageBox.Show("Employees were succesfully merged.");
            Close();

0 个答案:

没有答案