Beispiel #1
0
        public void Delete(Viewer record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttblviewer.NewttblviewerRow();
                Viewer.BuildMinimalRow(ref row, record);
                this.dataSet.ttblviewer.AddttblviewerRow((pdsviewerDataSet.ttblviewerRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }