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

            if (row == null)
            {
                row = this.dataSet.ttblinv_prob.Newttblinv_probRow();
                InvProb.BuildMinimalRow(ref row, record);
                this.dataSet.ttblinv_prob.Addttblinv_probRow((pdsinv_probDataSet.ttblinv_probRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }