BExIS.Dlm.Services.Data.DatasetManager.DeleteDataTuple C# (CSharp) Method

DeleteDataTuple() private method

private DeleteDataTuple ( DataTuple entity ) : bool
entity BExIS.Dlm.Entities.Data.DataTuple
return bool
        public bool DeleteDataTuple(DataTuple entity)
        {
            Contract.Requires(entity != null);
            Contract.Requires(entity.Id >= 0);

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

                entity = repo.Reload(entity);
                entity.DatasetVersion = null;

                repo.Delete(entity);

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

Same methods

DatasetManager::DeleteDataTuple ( IEnumerable entities ) : bool