public void Run() { while (InstructionPointer < Instructions.Length) { if (AssignedCommands.ContainsKey(Instructions[InstructionPointer])) { AssignedCommands[Instructions[InstructionPointer]](this); } InstructionPointer++; } }
public Command CreateCommnad() { //check if FakeMap is Active , Use FakeProvider FakeMapConfig(); //Initial dbProvider dbProviderInterface.Parameters = new ParameterCollection(); dbProviderInterface.Sql = ""; dbProviderInterface.commandType = defaultCommandType; var command = new Command(dbProviderInterface); AssignedCommands.Add(command); return(command); }