public void Delete(Icsgs record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicsgs.NewttblicsgsRow(); Icsgs.BuildMinimalRow(ref row, record); this.dataSet.ttblicsgs.AddttblicsgsRow((pdsicsgsDataSet.ttblicsgsRow)row); } row.Delete(); this.SaveChanges(); }