Exemplo n.º 1
0
        private void DeleteUseRowID(Carrier record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttblcarrier.NewttblcarrierRow();
                Carrier.BuildMinimalRow(ref row, record);
                this.dataSet.ttblcarrier.AddttblcarrierRow((pdscarrierDataSet.ttblcarrierRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }