public void Delete(Goody entity) { try { if (entity == null) { return; } using (var scope = new TransactionScope(TransactionScopeOption.Required, new TransactionOptions() { IsolationLevel = System.Transactions.IsolationLevel.ReadUncommitted, Timeout = new TimeSpan(2, 0, 0) })) { Business.GetGoodyConvertCountingUnitBusiness().Delete(Business.GetGoodyConvertCountingUnitBusiness().GetByGoodyId(entity.ID)); Business.GetGoodyPriceListBusiness().Delete(Business.GetGoodyPriceListBusiness().GetByGoodyId(entity.ID).ToList()); this.Table.Remove(entity); this.SubmitChanges(); scope.Complete(); } } catch { throw; } }