public void Delete(Vasp record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblvasp.NewttblvaspRow(); Vasp.BuildMinimalRow(ref row, record); this.dataSet.ttblvasp.AddttblvaspRow((pdsvaspDataSet.ttblvaspRow)row); } row.Delete(); this.SaveChanges(); }