public void Delete(Swicsd record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblswicsd.NewttblswicsdRow(); Swicsd.BuildMinimalRow(ref row, record); this.dataSet.ttblswicsd.AddttblswicsdRow((pdsswicsdDataSet.ttblswicsdRow)row); } row.Delete(); this.SaveChanges(); }