Пример #1
0
 public override ICommand CreateCommand(string commandString)
 {
     if (commandString.Contains(CommandInfo.CreateConnection))
     {
         ParseCommand(commandString);
         command = new ConnectCommand(connectionString);
     }
     else
     {
         command = Successor.CreateCommand(commandString);
     }
     return(command);
 }
 public override ICommand CreateCommand(string commandString)
 {
     if (commandString.Contains(CommandInfo.CreateConnection))
     {
         connectionString = ReplaseCommandNameAndTrim(commandString, CommandInfo.CreateConnection).Split(Separators);
         command          = new ConnectCommand(connectionString);
     }
     else
     {
         command = Successor.CreateCommand(commandString);
     }
     return(command);
 }