Ejemplo n.º 1
0
 public void Run()
 {
     while (InstructionPointer < Instructions.Length)
     {
         if (AssignedCommands.ContainsKey(Instructions[InstructionPointer]))
         {
             AssignedCommands[Instructions[InstructionPointer]](this);
         }
         InstructionPointer++;
     }
 }
Ejemplo n.º 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);
        }