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(); }
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) { return createCommandBase(commandType, commandText); }
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)); }