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

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

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

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

                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

AggregateFunctionManager::Delete ( IEnumerable entities ) : bool