public Command(int connectionIndex, string commandText, AppDomain.App app, bool noTimeout) { _connectionString = app.Connections[connectionIndex].ToString(); _commandText = commandText; _app = app; _noTimeOut = noTimeout; }
public Command(string connectionString, string commandText, AppDomain.App app, bool noTimeout) { _connectionString = connectionString; _commandText = commandText; _app = app; _noTimeOut = noTimeout; }
public Command(int connectionIndex, string commandText, List<KeyValuePair<string, object>> parametersList, AppDomain.App app, bool noTimeout) { _connectionString = app.Connections[connectionIndex].ToString(); _commandText = commandText; _app = app; _isStoredProcedure = true; _noTimeOut = noTimeout; if (parametersList != null) _parametersList = parametersList; }