public void Delete(Uom record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbluom.NewttbluomRow(); Uom.BuildMinimalRow(ref row, record); this.dataSet.ttbluom.AddttbluomRow((pdsuomDataSet.ttbluomRow)row); } row.Delete(); this.SaveChanges(); }