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

            if (row == null)
            {
                row = this.dataSet.ttblpoeral.NewttblpoeralRow();
                Poeral.BuildMinimalRow(ref row, record);
                this.dataSet.ttblpoeral.AddttblpoeralRow((pdspoeralDataSet.ttblpoeralRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }