Exemplo n.º 1
0
        public void DeleteWhere <T>(Expression <Func <T, bool> > expression)
        {
            assertNotDisposed();

            var deletion = new Deletion(StorageFor <T>());

            deletion.ApplyFiltering(this, expression);

            _unitOfWork.Add(deletion);
        }
        public void DeleteWhere <T>(Expression <Func <T, bool> > expression)
        {
            assertNotDisposed();

            var documentStorage = StorageFor <T>();
            var deletion        = new Deletion(documentStorage, documentStorage.DeleteFragment);

            deletion.ApplyFiltering(this, expression);

            _workTracker.Add(deletion);
        }