private CommandBase createCommandBase(StructureMapCommandType commandType, string commandText)
        {
            CommandBase returnValue = null;

            switch (commandType)
            {
            case StructureMapCommandType.Parameterized:
                returnValue = new ParameterizedCommand(commandText);
                break;

            case StructureMapCommandType.Templated:
                returnValue = new TemplatedCommand(commandText, _database);
                break;

            case StructureMapCommandType.StoredProcedure:
                returnValue = new StoredProcedureCommand(commandText, this);
                break;
            }

            returnValue.Attach(this);

            return(returnValue);
        }
 public IReaderSource CreateReaderSource(StructureMapCommandType commandType, string commandText)
 {
     throw new NotImplementedException();
 }
 public ICommand CreateCommand(StructureMapCommandType commandType, string commandText)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
        private CommandBase createCommandBase(StructureMapCommandType commandType, string commandText)
        {
            CommandBase returnValue = null;

            switch (commandType)
            {
                case StructureMapCommandType.Parameterized:
                    returnValue = new ParameterizedCommand(commandText);
                    break;

                case StructureMapCommandType.Templated:
                    returnValue = new TemplatedCommand(commandText, _database);
                    break;

                case StructureMapCommandType.StoredProcedure:
                    returnValue = new StoredProcedureCommand(commandText, this);
                    break;
            }

            returnValue.Attach(this);

            return returnValue;
        }
Exemple #5
0
 public IReaderSource CreateReaderSource(StructureMapCommandType commandType, string commandText)
 {
     return createCommandBase(commandType, commandText);
 }
Exemple #6
0
 public ICommand CreateCommand(StructureMapCommandType commandType, string commandText)
 {
     return createCommandBase(commandType, commandText);
 }
 public ICommand CreateCommand(StructureMapCommandType commandType, string commandText)
 {
     return(createCommandBase(commandType, commandText));
 }
 public IReaderSource CreateReaderSource(StructureMapCommandType commandType, string commandText)
 {
     return(createCommandBase(commandType, commandText));
 }
 public ICommand CreateCommand(StructureMapCommandType commandType, string commandText)
 {
     throw new NotImplementedException();
 }
 public IReaderSource CreateReaderSource(StructureMapCommandType commandType, string commandText)
 {
     throw new NotImplementedException();
 }