示例#1
0
        private void DeleteUseRowID(Apet record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttblapet.NewttblapetRow();
                Apet.BuildMinimalRow(ref row, record);
                this.dataSet.ttblapet.AddttblapetRow((pdsapetDataSet.ttblapetRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }