Ejemplo n.º 1
0
        public void Delete(CarrierService record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttblcarrier_service.Newttblcarrier_serviceRow();
                CarrierService.BuildMinimalRow(ref row, record);
                this.dataSet.ttblcarrier_service.Addttblcarrier_serviceRow((pdscarrier_serviceDataSet.ttblcarrier_serviceRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }