public void Delete(Pdsvtr record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpdsvtr.NewttblpdsvtrRow(); Pdsvtr.BuildMinimalRow(ref row, record); this.dataSet.ttblpdsvtr.AddttblpdsvtrRow((pdspdsvtrDataSet.ttblpdsvtrRow)row); } row.Delete(); this.SaveChanges(); }