示例#1
0
 public Command(int connectionIndex, string commandText, AppDomain.App app, bool noTimeout)
 {
     _connectionString = app.Connections[connectionIndex].ToString();
     _commandText = commandText;
     _app = app;
     _noTimeOut = noTimeout;
 }
示例#2
0
 public Command(string connectionString, string commandText, AppDomain.App app, bool noTimeout)
 {
     _connectionString = connectionString;
     _commandText = commandText;
     _app = app;
     _noTimeOut = noTimeout;
 }
示例#3
0
        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;
        }