BExIS.Dlm.Services.DataStructure.MethodologyManager.Delete C# (CSharp) Метод

Delete() публичный Метод

public Delete ( Methodology entity ) : bool
entity BExIS.Dlm.Entities.DataStructure.Methodology
Результат bool
        public bool Delete(Methodology entity)
        {
            Contract.Requires(entity != null);
            Contract.Requires(entity.Id >= 0);

            using (IUnitOfWork uow = this.GetUnitOfWork())
            {
                IRepository<Methodology> repo = uow.GetRepository<Methodology>();

                entity = repo.Reload(entity);
                //relation to DataContainer is managed by the other end
                repo.Delete(entity);
                uow.Commit();
            }
            // if any problem was detected during the commit, an exception will be thrown!
            return (true);
        }

Same methods

MethodologyManager::Delete ( IEnumerable entities ) : bool