Пример #1
0
        public void Delete(Whmst record)
        {
            var row = this.GetRowByRowId(record.rowID, string.Empty);

            if (row == null)
            {
                row = this.dataSet.ttblwhmst.NewttblwhmstRow();
                Whmst.BuildMinimalRow(ref row, record);
                this.dataSet.ttblwhmst.AddttblwhmstRow((pdswhmstDataSet.ttblwhmstRow)row);
            }
            row.Delete();
            this.SaveChanges();
        }