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

            if (row == null)
            {
                row = this.dataSet.ttblswel.NewttblswelRow();
                Swel.BuildMinimalRow(ref row, record);
                this.dataSet.ttblswel.AddttblswelRow((pdsswelDataSet.ttblswelRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }