public void Run()
 {
     while (InstructionPointer < Instructions.Length)
     {
         if (AssignedCommands.ContainsKey(Instructions[InstructionPointer]))
         {
             AssignedCommands[Instructions[InstructionPointer]](this);
         }
         InstructionPointer++;
     }
 }
예제 #2
0
        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);
        }