Npgsql.NpgsqlCommand.NpgsqlCommand C# (CSharp) Method

NpgsqlCommand() public method

Initializes a new instance of the NpgsqlCommand class with the text of the query and a NpgsqlConnection.
public NpgsqlCommand ( String cmdText, NpgsqlConnection connection ) : System
cmdText String The text of the query.
connection NpgsqlConnection A NpgsqlConnection that represents the connection to a PostgreSQL server.
return System
        public NpgsqlCommand(String cmdText, NpgsqlConnection connection)
            : this(cmdText, connection, null)
        {
        }

Same methods

NpgsqlCommand::NpgsqlCommand ( ) : System
NpgsqlCommand::NpgsqlCommand ( String cmdText ) : System
NpgsqlCommand::NpgsqlCommand ( String cmdText, NpgsqlConnection connection, NpgsqlTransaction transaction ) : System
NpgsqlCommand::NpgsqlCommand ( String cmdText, NpgsqlConnector connector, int CommandTimeout = 20 ) : System