Npgsql.NpgsqlCommand.NpgsqlCommand C# (CSharp) Method

NpgsqlCommand() private method

Used to execute internal commands.
private NpgsqlCommand ( String cmdText, NpgsqlConnector connector, int CommandTimeout = 20 ) : System
cmdText String
connector NpgsqlConnector
CommandTimeout int
return System
        internal NpgsqlCommand(String cmdText, NpgsqlConnector connector, int CommandTimeout = 20)
        {
            NpgsqlEventLog.LogMethodEnter(LogLevel.Debug, CLASSNAME, CLASSNAME);

            planName = String.Empty;
            commandText = cmdText;
            this.m_Connector = connector;
            this.CommandTimeout = CommandTimeout;
            commandType = CommandType.Text;

            // Removed this setting. It was causing too much problem.
            // Do internal commands really need different timeout setting?
            // Internal commands aren't affected by command timeout value provided by user.
            // timeout = 20;
        }

Same methods

NpgsqlCommand::NpgsqlCommand ( ) : System
NpgsqlCommand::NpgsqlCommand ( String cmdText ) : System
NpgsqlCommand::NpgsqlCommand ( String cmdText, NpgsqlConnection connection ) : System
NpgsqlCommand::NpgsqlCommand ( String cmdText, NpgsqlConnection connection, NpgsqlTransaction transaction ) : System