public void Delete(Rtmst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblrtmst.NewttblrtmstRow(); Rtmst.BuildMinimalRow(ref row, record); this.dataSet.ttblrtmst.AddttblrtmstRow((pdsrtmstDataSet.ttblrtmstRow)row); } row.Delete(); this.SaveChanges(); }