DisableIndexes() private méthode

private DisableIndexes ( Table tableType ) : void
tableType Table
Résultat void
Exemple #1
0
        public IReadOnlyCollection <IEvent> ExecuteCommands(IReadOnlyCollection <ICommand> commands)
        {
            foreach (var disableCommand in commands.OfType <DisableIndexesCommand>())
            {
                _indexManager.DisableIndexes(disableCommand.Table);
            }

            return(Array.Empty <IEvent>());
        }
        public IReadOnlyCollection <IEvent> ExecuteCommands(IReadOnlyCollection <ICommand> commands)
        {
            var disableCommand = commands.OfType <DisableIndexesCommand>().SingleOrDefault();

            if (disableCommand != null)
            {
                _indexManager.DisableIndexes(disableCommand.Table);
            }

            return(Array.Empty <IEvent>());
        }