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

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

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

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

                //delete the Classifier
                repo.Delete(entity);

                // commit changes
                uow.Commit();
            }
            // if any problem was detected during the commit, an exception will be thrown!
            return (true);
        }

Same methods

ClassifierManager::Delete ( IEnumerable entities ) : bool