public void Delete(Dealgd record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbldealgd.NewttbldealgdRow(); Dealgd.BuildMinimalRow(ref row, record); this.dataSet.ttbldealgd.AddttbldealgdRow((pdsdealgdDataSet.ttbldealgdRow)row); } row.Delete(); this.SaveChanges(); }