Npgsql Called from constructor of derived class. Finalizer for HashAlgorithm Computes the entire hash of all the bytes in the byte array. When overridden in a derived class, drives the hashing function. When overridden in a derived class, this pads and hashes whatever data might be left in the buffers and then returns the hash created. When overridden in a derived class, initializes the object to prepare for hashing. Used for stream chaining. Computes hash as data passes through it. The buffer from which to grab the data to be copied. The offset into the input buffer to start reading at. The number of bytes to be copied. The buffer to write the copied data to. At what point in the outputBuffer to write the data at. Used for stream chaining. Computes hash as data passes through it. Finishes off the hash. The buffer from which to grab the data to be copied. The offset into the input buffer to start reading at. The number of bytes to be copied. Get whether or not the hash can transform multiple blocks at a time. Note: MUST be overriden if descendant can transform multiple block on a single call! Gets the previously computed hash. Returns the size in bits of the hash. Must be overriden if not 1 Must be overriden if not 1 Common base class for all derived MD5 implementations. Called from constructor of derived class. Creates the default derived class. C# implementation of the MD5 cryptographic hash function. Creates a new MD5CryptoServiceProvider. Drives the hashing function. Byte array containing the data to hash. Where in the input buffer to start. Size in bytes of the data in the buffer to hash. This finalizes the hash. Takes the data from the chaining variables and returns it. Resets the class after use. Called automatically after hashing is done. This is the meat of the hash function. It is what processes each block one at a time. Byte array to process data from. Where in the byte array to start processing. Pads and then processes the final block. Buffer to grab data from. Position in buffer in bytes to get data from. How much data in bytes in the buffer to use. This class represents the AsciiRow (version 2) and DataRow (version 3+) message sent from the PostgreSQL server. This is the abstract base class for NpgsqlAsciiRow and NpgsqlBinaryRow. Provide access to the fields in this row. This class represents a BackEndKeyData message received from PostgreSQL This class represents the BinaryRow message sent from the PostgreSQL server. This is unused as of protocol version 3. This class represents the Bind message sent to PostgreSQL server. This class represents the CancelRequest message sent to PostgreSQL server. This class represents the base class for the state pattern design pattern implementation. This method is used by the states to change the state of the context. This method is responsible to handle all protocol messages sent from the backend. It holds all the logic to do it. To exchange data, it uses a Mediator object from which it reads/writes information to handle backend requests. Resolve a host name or IP address. This is needed because if you call Dns.Resolve() with an IP address, it will attempt to resolve it as a host name, when it should just convert it to an IP address. Represents a SQL statement or function (stored procedure) to execute against a PostgreSQL database. This class cannot be inherited. Initializes a new instance of the NpgsqlCommand class. Initializes a new instance of the NpgsqlCommand class with the text of the query. The text of the query. Initializes a new instance of the NpgsqlCommand class with the text of the query and a NpgsqlConnection. The text of the query. A NpgsqlConnection that represents the connection to a PostgreSQL server. Initializes a new instance of the NpgsqlCommand class with the text of the query, a NpgsqlConnection, and the NpgsqlTransaction. The text of the query. A NpgsqlConnection that represents the connection to a PostgreSQL server. The NpgsqlTransaction in which the NpgsqlCommand executes. Used to execute internal commands. Attempts to cancel the execution of a NpgsqlCommand. This Method isn't implemented yet. Create a new command based on this one. A new NpgsqlCommand object. Create a new connection based on this one. A new NpgsqlConnection object. Creates a new instance of an IDbDataParameter object. An IDbDataParameter object. Creates a new instance of a NpgsqlParameter object. A NpgsqlParameter object. Executes a SQL statement against the connection and returns the number of rows affected. The number of rows affected. Sends the CommandText to the Connection and builds a NpgsqlDataReader. A NpgsqlDataReader object. Sends the CommandText to the Connection and builds a NpgsqlDataReader using one of the CommandBehavior values. One of the CommandBehavior values. A NpgsqlDataReader object. Sends the CommandText to the Connection and builds a NpgsqlDataReader. A NpgsqlDataReader object. Sends the CommandText to the Connection and builds a NpgsqlDataReader using one of the CommandBehavior values. One of the CommandBehavior values. A NpgsqlDataReader object. Currently the CommandBehavior parameter is ignored. This method binds the parameters from parameters collection to the bind message. Executes the query, and returns the first column of the first row in the result set returned by the query. Extra columns or rows are ignored. The first column of the first row in the result set, or a null reference if the result set is empty. Creates a prepared version of the command on a PostgreSQL server. This method checks the connection state to see if the connection is set or it is open. If one of this conditions is not met, throws an InvalidOperationException This method substitutes the Parameters, if exist, in the command to their actual values. The parameter name format is :ParameterName. A version of CommandText with the Parameters inserted. This methods takes a string with a function call witch returns a refcursor or a set of refcursor. It will return the names of the open cursors/portals which will hold results. In turn, it returns the string which is needed to get the data of this cursors in form of one resultset for each cursor open. This way, clients don't need to do anything else besides calling function normally to get results in this way. Gets or sets the SQL statement or function (stored procedure) to execute at the data source. The Transact-SQL statement or stored procedure to execute. The default is an empty string. Gets or sets the wait time before terminating the attempt to execute a command and generating an error. The time (in seconds) to wait for the command to execute. The default is 20 seconds. Gets or sets a value indicating how the CommandText property is to be interpreted. One of the CommandType values. The default is CommandType.Text. Gets or sets the NpgsqlConnection used by this instance of the NpgsqlCommand. The connection to a data source. The default value is a null reference. Gets the NpgsqlParameterCollection. The parameters of the SQL statement or function (stored procedure). The default is an empty collection. Gets or sets the NpgsqlTransaction within which the NpgsqlCommand executes. The NpgsqlTransaction. The default value is a null reference. Gets or sets how command results are applied to the DataRow when used by the Update method of the DbDataAdapter. One of the UpdateRowSource values. Returns oid of inserted row. This is only updated when using executenonQuery and when command inserts just a single row. If table is created without oids, this will always be 0. This class is responsible to create database commands for automatic insert, update and delete operations. This method is reponsible to derive the command parameter list with values obtained from function definition. It clears the Parameters collection of command. Also, if there is any parameter type which is not supported by Npgsql, an InvalidOperationException will be thrown. Parameters name will be parameter1, parameter2, ... For while, only parameter name and NpgsqlDbType are obtained. NpgsqlCommand whose function parameters will be obtained. Represents the method that handles the Notice events. A NpgsqlNoticeEventArgs that contains the event data. Represents the method that handles the Notification events. The source of the event. A NpgsqlNotificationEventArgs that contains the event data. This class represents a connection to a PostgreSQL server. Initializes a new instance of the NpgsqlConnection class. Initializes a new instance of the NpgsqlConnection class and sets the ConnectionString. The connection used to open the PostgreSQL database. Begins a database transaction. An IDbTransaction object representing the new transaction. Currently there's no support for nested transactions. Begins a database transaction with the specified isolation level. The isolation level under which the transaction should run. An IDbTransaction object representing the new transaction. Currently the IsolationLevel ReadCommitted and Serializable are supported by the PostgreSQL backend. There's no support for nested transactions. Begins a database transaction. A NpgsqlTransaction object representing the new transaction. Currently there's no support for nested transactions. Begins a database transaction with the specified isolation level. The isolation level under which the transaction should run. A NpgsqlTransaction object representing the new transaction. Currently the IsolationLevel ReadCommitted and Serializable are supported by the PostgreSQL backend. There's no support for nested transactions. Opens a database connection with the property settings specified by the ConnectionString. This method changes the current database by disconnecting from the actual database and connecting to the specified. The name of the database to use in place of the current database. Releases the connection to the database. If the connection is pooled, it will be made available for re-use. If it is non-pooled, the actual connection will be shutdown. Creates and returns a IDbCommand object associated with the IDbConnection. A IDbCommand object. Creates and returns a NpgsqlCommand object associated with the NpgsqlConnection. A NpgsqlCommand object. Releases all resources used by the NpgsqlConnection. true when called from Dispose(); false when being called from the finalizer. Create a new connection based on this one. A new NpgsqlConnection object. Create a new connection based on this one. A new NpgsqlConnection object. Default SSL CertificateSelectionCallback implementation. Default SSL CertificateValidationCallback implementation. Default SSL PrivateKeySelectionCallback implementation. Write each key/value pair in the connection string to the log. Returns the schema collection specified by the collection name. The collection name. The collection specified. Returns the schema collection specified by the collection name filtered by the restrictions. The collection name. The restriction values to filter the results. A description of the restrictions is contained in the Restrictions collection. The collection specified. Occurs on NoticeResponses from the PostgreSQL backend. Occurs on NotificationResponses from the PostgreSQL backend. Mono.Security.Protocol.Tls.CertificateSelectionCallback delegate. Mono.Security.Protocol.Tls.CertificateValidationCallback delegate. Mono.Security.Protocol.Tls.PrivateKeySelectionCallback delegate. Backend server host name. Backend server port. If true, the connection will attempt to use SSL. Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error. The time (in seconds) to wait for a connection to open. The default value is 15 seconds. Gets the time to wait before closing unused connections in the pool if the count of all connections exeeds MinPoolSize. If connection pool contains unused connections for ConnectionLifeTime seconds, the half of them will be closed. If there will be unused connections in a second later then again the half of them will be closed and so on. This strategy provide smooth change of connection count in the pool. The time (in seconds) to wait. The default value is 15 seconds. Gets the name of the current database or the database to be used after a connection is opened. The name of the current database or the name of the database to be used after a connection is opened. The default value is the empty string. Gets flag indicating if we are using Synchronous notification or not. The default value is false. Gets the current state of the connection. A bitwise combination of the ConnectionState values. The default is Closed. Version of the PostgreSQL backend. This can only be called when there is an active connection. Protocol version in use. This can only be called when there is an active connection. The connector object connected to the backend. Gets the NpgsqlConnectionString containing the parsed connection string values. User name. Password. Determine if connection pooling will be used for this connection. Represents a connection string. Return an exact copy of this NpgsqlConnectionString. This method parses a connection string and returns a new NpgsqlConnectionString object. Report whether a value with the provided key name exists in this connection string. Return a clean string representation of this connection string. Return a string value from the current connection string, even if the given key is not in the string or if the value is null. Return a string value from the current connection string, even if the given key is not in the string or if the value is null. Return an integer value from the current connection string, even if the given key is not in the string or if the value is null. Throw an appropriate exception if the value cannot be coerced to an integer. Return an integer value from the current connection string, even if the given key is not in the string or if the value is null. Throw an appropriate exception if the value cannot be coerced to an integer. Return an integer value from the current connection string, even if the given key is not in the string or if the value is null. Throw an appropriate exception if the value cannot be coerced to an integer. Return an integer value from the current connection string, even if the given key is not in the string. Throw an appropriate exception if the value cannot be coerced to an integer. Return a boolean value from the current connection string, even if the given key is not in the string. Throw an appropriate exception if the value is not recognized as a boolean. Return a boolean value from the current connection string, even if the given key is not in the string. Throw an appropriate exception if the value is not recognized as a boolean. Return a ProtocolVersion from the current connection string, even if the given key is not in the string. Throw an appropriate exception if the value is not recognized as integer 2 or 3. Case insensative accessor for indivual connection string values. Know connection string keys. Connection string default values. !!! Helper class, for compilation only. Connector implements the logic for the Connection Objects to access the physical connection to the database, and isolate the application developer from connection pooling internals. Constructor. Controls whether the connector can be shared. This method checks if the connector is still ok. We try to send a simple query text, select 1 as ConnectionTest; This method is responsible for releasing all resources associated with this Connector. This method is responsible to release all portals used by this Connector. Check for mediator errors (sent by backend) and throw the appropriate exception if errors found. This needs to be called after every interaction with the backend. Check for notices and fire the appropiate events. This needs to be called after every interaction with the backend. Check for notifications and fire the appropiate events. This needs to be called after every interaction with the backend. Check for errors AND notifications in one call. Default SSL CertificateSelectionCallback implementation. Default SSL CertificateValidationCallback implementation. Default SSL PrivateKeySelectionCallback implementation. This method is required to set all the version dependent features flags. SupportsPrepare means the server can use prepared query plans (7.3+) Opens the physical connection to the server. Usually called by the RequestConnector Method of the connection pool manager. Closes the physical connection to the server. Returns next portal index. Returns next plan index. Occurs on NoticeResponses from the PostgreSQL backend. Occurs on NotificationResponses from the PostgreSQL backend. Mono.Security.Protocol.Tls.CertificateSelectionCallback delegate. Mono.Security.Protocol.Tls.CertificateValidationCallback delegate. Mono.Security.Protocol.Tls.PrivateKeySelectionCallback delegate. Gets the current state of the connection. Version of backend server this connector is connected to. Backend protocol version in use by this connector. The physical connection stream to the backend. The physical connection socket to the backend. Reports if this connector is fully connected. The connection mediator. Report if the connection is in a transaction. Report whether the current connection can support prepare functionality. This class manages all connector objects, pooled AND non-pooled. Unique static instance of the connector pool mamager. Map of index to unused pooled connectors, avaliable to the next RequestConnector() call. This hashmap will be indexed by connection string. This key will hold a list of queues of pooled connectors available to be used. Timer for tracking unused connections in pools. Searches the shared and pooled connector lists for a matching connector object or creates a new one. The NpgsqlConnection that is requesting the connector. Its ConnectionString will be used to search the pool for available connectors. A connector object. Find a pooled connector. Handle locking and timeout here. Find a pooled connector. Handle shared/non-shared here. Releases a connector, possibly back to the pool for future use. Pooled connectors will be put back into the pool if there is room. Shared connectors should just have their use count decremented since they always stay in the shared pool. The connector to release. Force the connector to close, even if it is pooled. Release a pooled connector. Handle locking here. Release a pooled connector. Handle shared/non-shared here. Create a connector without any pooling functionality. Find an available pooled connector in the non-shared pool, or create a new one if none found. Find an available shared connector in the shared pool, or create a new one if none found. Close the connector. Connector to release Put a pooled connector into the pool queue. Connector to pool Stop sharing a shared connector. Connector to unshare A queue with an extra Int32 for keeping track of busy connections. The number of pooled Connectors that belong to this queue but are currently in use. Represents the method that handles the RowUpdated events. The source of the event. A NpgsqlRowUpdatedEventArgs that contains the event data. Represents the method that handles the RowUpdating events. The source of the event. A NpgsqlRowUpdatingEventArgs that contains the event data. This class represents an adapter from many commands: select, update, insert and delete to fill Datasets. Provides a means of reading a forward-only stream of rows from a PostgreSQL backend. This class cannot be inherited. Releases the resources used by the NpgsqlCommand. Releases the resources used by the NpgsqlCommand. Closes the data reader object. Advances the data reader to the next result, when multiple result sets were returned by the PostgreSQL backend. True if the reader was advanced, otherwise false. Advances the data reader to the next row. True if the reader was advanced, otherwise false. Returns a System.Data.DataTable that describes the column metadata of the DataReader. Return the column name of the column at index . Return the data type OID of the column at index . FIXME: Why this method returns String? Return the data type name of the column at index . Return the data type of the column at index . Return the data DbType of the column at index . Return the data NpgsqlDbType of the column at index . Return the value of the column at index . Copy values from each column in the current row into . The number of column values copied. Return the column name of the column named . Gets the value of a column as Boolean. Gets the value of a column as Byte. Not implemented. Gets raw data from a column. Gets the value of a column as Char. Not implemented. Gets raw data from a column. Gets the value of a column converted to a Guid. Not implemented. Gets the value of a column as Int16. Gets the value of a column as Int32. Gets the value of a column as Int64. Gets the value of a column as Single. Gets the value of a column as Double. Gets the value of a column as String. Gets the value of a column as Decimal. Gets the value of a column as DateTime. Not implemented. Report whether the value in a column is DBNull. This methods parses the command text and tries to get the tablename from it. Gets a value indicating the depth of nesting for the current row. Always returns zero. Gets a value indicating whether the data reader is closed. Gets the number of rows changed, inserted, or deleted by execution of the SQL statement. Indicates if NpgsqlDatareader has rows to be read. Is raised whenever Close() is called. Gets the number of columns in the current row. Gets the value of a column in its native format. Gets the value of a column in its native format. Contains the column names as the keys Contains all unique columns This class represents the Parse message sent to PostgreSQL server. EventArgs class to send Notice parameters, which are just NpgsqlError's in a lighter context. Notice information. This class represents the ErrorResponse and NoticeResponse message sent from PostgreSQL server. Return a string representation of this error object. Severity code. All versions. Error code. PostgreSQL 7.4 and up. Terse error message. All versions. Detailed error message. PostgreSQL 7.4 and up. Suggestion to help resolve the error. PostgreSQL 7.4 and up. Position (one based) within the query string where the error was encounterd. PostgreSQL 7.4 and up. Trace back information. PostgreSQL 7.4 and up. Source file (in backend) reporting the error. PostgreSQL 7.4 and up. Source file line number (in backend) reporting the error. PostgreSQL 7.4 and up. Source routine (in backend) reporting the error. PostgreSQL 7.4 and up. String containing the sql sent which produced this error. Backend protocol version in use. The level of verbosity of the NpgsqlEventLog Don't log at all Only log the most common issues Log everything This class handles all the Npgsql event and debug logging Writes a string to the Npgsql event log if msglevel is bigger then NpgsqlEventLog.Level This method is obsolete and should no longer be used. It is likely to be removed in future versions of Npgsql The message to write to the event log The minimum LogLevel for which this message should be logged. Writes a string to the Npgsql event log if msglevel is bigger then NpgsqlEventLog.Level The ResourceManager to get the localized resources The name of the resource that should be fetched by the ResourceManager The minimum LogLevel for which this message should be logged. The additional parameters that shall be included into the log-message (must be compatible with the string in the resource): Writes the default log-message for the action of calling the Get-part of an Indexer to the log file. The minimum LogLevel for which this message should be logged. The name of the class that contains the Indexer The parameter given to the Indexer Writes the default log-message for the action of calling the Set-part of an Indexer to the logfile. The minimum LogLevel for which this message should be logged. The name of the class that contains the Indexer The parameter given to the Indexer The value the Indexer is set to Writes the default log-message for the action of calling the Get-part of a Property to the logfile. The minimum LogLevel for which this message should be logged. The name of the class that contains the Property The name of the Property Writes the default log-message for the action of calling the Set-part of a Property to the logfile. The minimum LogLevel for which this message should be logged. The name of the class that contains the Property The name of the Property The value the Property is set to Writes the default log-message for the action of calling a Method without Arguments to the logfile. The minimum LogLevel for which this message should be logged. The name of the class that contains the Method The name of the Method Writes the default log-message for the action of calling a Method with one Argument to the logfile. The minimum LogLevel for which this message should be logged. The name of the class that contains the Method The name of the Method The value of the Argument of the Method Writes the default log-message for the action of calling a Method with two Arguments to the logfile. The minimum LogLevel for which this message should be logged. The name of the class that contains the Method The name of the Method The value of the first Argument of the Method The value of the second Argument of the Method Writes the default log-message for the action of calling a Method with three Arguments to the logfile. The minimum LogLevel for which this message should be logged. The name of the class that contains the Method The name of the Method The value of the first Argument of the Method The value of the second Argument of the Method The value of the third Argument of the Method Writes the default log-message for the action of calling a Method with more than three Arguments to the logfile. The minimum LogLevel for which this message should be logged. The name of the class that contains the Method The name of the Method A Object-Array with zero or more Ojects that are Arguments of the Method. Sets/Returns the level of information to log to the logfile. The current LogLevel Sets/Returns the filename to use for logging. The filename of the current Log file. Sets/Returns whether Log messages should be echoed to the console true if Log messages are echoed to the console, otherwise false The exception that is thrown when the PostgreSQL backend reports errors. Construct a backend error exception based on a list of one or more backend errors. The basic Exception.Message will be built from the first (usually the only) error in the list. Format a .NET style exception string. Include all errors in the list, including any hints. Append a line to the given Stream, first checking for zero-length. Provide access to the entire list of errors provided by the PostgreSQL backend. Severity code. All versions. Error code. PostgreSQL 7.4 and up. Basic error message. All versions. Detailed error message. PostgreSQL 7.4 and up. Suggestion to help resolve the error. PostgreSQL 7.4 and up. Position (one based) within the query string where the error was encounterd. PostgreSQL 7.4 and up. Trace back information. PostgreSQL 7.4 and up. Source file (in backend) reporting the error. PostgreSQL 7.4 and up. Source file line number (in backend) reporting the error. PostgreSQL 7.4 and up. Source routine (in backend) reporting the error. PostgreSQL 7.4 and up. String containing the sql sent which produced this error. Returns the entire list of errors provided by the PostgreSQL backend. This class represents the Parse message sent to PostgreSQL server. This class represents the Parse message sent to PostgreSQL server. This class is responsible for serving as bridge between the backend protocol handling and the core classes. It is used as the mediator for exchanging data generated/sent from/to backend. Class NpgsqlMessageTypes_Ver_2. Defines PG frontend/backend protocol message types and parameters used in protocol version 2. Class NpgsqlMessageTypes_Ver_3. Defines PG frontend/backend protocol message types and parameters used in protocol version 3. EventArgs class to send Notification parameters. Process ID of the PostgreSQL backend that sent this notification. Condition that triggered that notification. This class represents a parameter to a command that will be sent to server Initializes a new instance of the NpgsqlParameter class with the parameter name and a value of the new NpgsqlParameter. The name of the parameter to map. An Object that is the value of the NpgsqlParameter.

When you specify an Object in the value parameter, the DbType is inferred from the .NET Framework type of the Object.

When using this constructor, you must be aware of a possible misuse of the constructor which takes a DbType parameter. This happens when calling this constructor passing an int 0 and the compiler thinks you are passing a value of DbType. Use Convert.ToInt32(value) for example to have compiler calling the correct constructor.

Internal constructor to handle parameter creation from CommandBuilder passing a NpgsqlNativeTypeInfo directly. Initializes a new instance of the NpgsqlParameter class with the parameter name and the data type. The name of the parameter to map. One of the DbType values. Initializes a new instance of the NpgsqlParameter class with the parameter name, the DbType, and the size. The name of the parameter to map. One of the DbType values. The length of the parameter. Initializes a new instance of the NpgsqlParameter class with the parameter name, the DbType, the size, and the source column name. The name of the parameter to map. One of the DbType values. The length of the parameter. The name of the source column. Initializes a new instance of the NpgsqlParameter class with the parameter name, the DbType, the size, the source column name, a ParameterDirection, the precision of the parameter, the scale of the parameter, a DataRowVersion to use, and the value of the parameter. The name of the parameter to map. One of the DbType values. The length of the parameter. The name of the source column. One of the ParameterDirection values. true if the value of the field can be null, otherwise false. The total number of digits to the left and right of the decimal point to which Value is resolved. The total number of decimal places to which Value is resolved. One of the DataRowVersion values. An Object that is the value of the NpgsqlParameter. Creates a new NpgsqlParameter that is a copy of the current instance. A new NpgsqlParameter that is a copy of this instance. Gets or sets the maximum number of digits used to represent the Value property. The maximum number of digits used to represent the Value property. The default value is 0, which indicates that the data provider sets the precision for Value. Gets or sets the number of decimal places to which Value is resolved. The number of decimal places to which Value is resolved. The default is 0. Gets or sets the maximum size, in bytes, of the data within the column. The maximum size, in bytes, of the data within the column. The default value is inferred from the parameter value. Gets or sets the DbType of the parameter. One of the DbType values. The default is String. Gets or sets the DbType of the parameter. One of the DbType values. The default is String. Gets or sets a value indicating whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter. One of the ParameterDirection values. The default is Input. Gets or sets a value indicating whether the parameter accepts null values. true if null values are accepted; otherwise, false. The default is false. Gets or sets the name of the NpgsqlParameter. The name of the NpgsqlParameter. The default is an empty string. Gets or sets the name of the source column that is mapped to the DataSet and used for loading or returning the Value. The name of the source column that is mapped to the DataSet. The default is an empty string. Gets or sets the DataRowVersion to use when loading Value. One of the DataRowVersion values. The default is Current. Gets or sets the value of the parameter. An Object that is the value of the parameter. The default value is null. Represents a collection of parameters relevant to a NpgsqlCommand as well as their respective mappings to columns in a DataSet. This class cannot be inherited. Initializes a new instance of the NpgsqlParameterCollection class. Adds the specified NpgsqlParameter object to the NpgsqlParameterCollection. The NpgsqlParameter to add to the collection. The index of the new NpgsqlParameter object. Adds a NpgsqlParameter to the NpgsqlParameterCollection given the specified parameter name and value. The name of the NpgsqlParameter. The Value of the NpgsqlParameter to add to the collection. The index of the new NpgsqlParameter object. Use caution when using this overload of the Add method to specify integer parameter values. Because this overload takes a value of type Object, you must convert the integral value to an Object type when the value is zero, as the following C# example demonstrates. parameters.Add(":pname", Convert.ToInt32(0)); If you do not perform this conversion, the compiler will assume you are attempting to call the NpgsqlParameterCollection.Add(string, DbType) overload. Adds a NpgsqlParameter to the NpgsqlParameterCollection given the parameter name and the data type. The name of the parameter. One of the DbType values. The index of the new NpgsqlParameter object. Adds a NpgsqlParameter to the NpgsqlParameterCollection with the parameter name, the data type, and the column length. The name of the parameter. One of the DbType values. The length of the column. The index of the new NpgsqlParameter object. Adds a NpgsqlParameter to the NpgsqlParameterCollection with the parameter name, the data type, the column length, and the source column name. The name of the parameter. One of the DbType values. The length of the column. The name of the source column. The index of the new NpgsqlParameter object. Removes the specified NpgsqlParameter from the collection using the parameter name. The name of the NpgsqlParameter object to retrieve. Gets a value indicating whether a NpgsqlParameter with the specified parameter name exists in the collection. The name of the NpgsqlParameter object to find. true if the collection contains the parameter; otherwise, false. Gets the location of the NpgsqlParameter in the collection with a specific parameter name. The name of the NpgsqlParameter object to find. The zero-based location of the NpgsqlParameter in the collection. Removes the specified NpgsqlParameter from the collection using a specific index. The zero-based index of the parameter. Inserts a NpgsqlParameter into the collection at the specified index. The zero-based index where the parameter is to be inserted within the collection. The NpgsqlParameter to add to the collection. Removes the specified NpgsqlParameter from the collection. The NpgsqlParameter to remove from the collection. Gets a value indicating whether a NpgsqlParameter exists in the collection. The value of the NpgsqlParameter object to find. true if the collection contains the NpgsqlParameter object; otherwise, false. true if the collection contains the parameter and param will contain the parameter; otherwise, false. Removes all items from the collection. Gets the location of a NpgsqlParameter in the collection. The value of the NpgsqlParameter object to find. The zero-based index of the NpgsqlParameter object in the collection. Adds the specified NpgsqlParameter object to the NpgsqlParameterCollection. The NpgsqlParameter to add to the collection. The zero-based index of the new NpgsqlParameter object. Copies NpgsqlParameter objects from the NpgsqlParameterCollection to the specified array. An Array to which to copy the NpgsqlParameter objects in the collection. The starting index of the array. Returns an enumerator that can iterate through the collection. An IEnumerator that can be used to iterate through the collection. In methods taking an object as argument this method is used to verify that the argument has the type NpgsqlParameter The object to verify Gets the NpgsqlParameter with the specified name. The name of the NpgsqlParameter to retrieve. The NpgsqlParameter with the specified name, or a null reference if the parameter is not found. Gets the NpgsqlParameter at the specified index. The zero-based index of the NpgsqlParameter to retrieve. The NpgsqlParameter at the specified index. Gets the number of NpgsqlParameter objects in the collection. The number of NpgsqlParameter objects in the collection. This class represents the ParameterStatus message sent from PostgreSQL server. This class represents the Parse message sent to PostgreSQL server. This class represents a PasswordPacket message sent to backend PostgreSQL. Summary description for NpgsqlQuery This struct represents the internal data of the RowDescription message. This class represents a RowDescription message sent from the PostgreSQL. Provides the underlying mechanism for reading schema information. Creates an NpgsqlSchema that can read schema information from the database. An open database connection for reading metadata. Returns the MetaDataCollections that lists all possible collections. The MetaDataCollections Returns the Restrictions that contains the meaning and position of the values in the restrictions array. The Restrictions Returns the Databases that contains a list of all accessable databases. The restrictions to filter the collection. The Databases Returns the Tables that contains table and view names and the database and schema they come from. The restrictions to filter the collection. The Tables Returns the Columns that contains information about columns in tables. The restrictions to filter the collection. The Columns. Returns the Views that contains view names and the database and schema they come from. The restrictions to filter the collection. The Views Returns the Users containing user names and the sysid of those users. The restrictions to filter the collection. The Users. This class represents a StartupPacket message of PostgreSQL protocol. This class represents the Parse message sent to PostgreSQL server. Represents a transaction to be made in a PostgreSQL database. This class cannot be inherited. Releases the unmanaged resources used by the NpgsqlTransaction and optionally releases the managed resources. Commits the database transaction. Rolls back a transaction from a pending state. Cancel the transaction without telling the backend about it. This is used to make the transaction go away when closing a connection. Gets the NpgsqlConnection object associated with the transaction, or a null reference if the transaction is no longer valid. The NpgsqlConnection object associated with the transaction. Specifies the IsolationLevel for this transaction. The IsolationLevel for this transaction. The default is ReadCommitted. Represent the frontend/backend protocol version. Represent the backend server version. Returns the string representation of this version in three place dot notation (Major.Minor.Patch). Server version major number. Server version minor number. Server version patch level number. This class provides many util methods to handle reading and writing of PostgreSQL protocol messages. This method takes a ProtocolVersion and returns an integer version number that the Postgres backend will recognize in a startup packet. This method takes a version string as returned by SELECT VERSION() and returns a valid version string ("7.2.2" for example). This is only needed when running protocol version 2. This does not do any validity checks. This method takes a version string ("7.4.1" for example) and produces the required integer version numbers (7, 4, and 1). Convert the beginning numeric part of the given string to Int32. For example: Strings "12345ABCD" and "12345.54321" would both be converted to int 12345. This method gets a C NULL terminated string from the network stream. It keeps reading a byte in each time until a NULL byte is returned. It returns the resultant string of bytes read. This string is sent from backend. This method gets a length terminated string from a network stream. It returns the resultant string of bytes read. This string is sent from backend. This method writes a C NULL terminated string to the network stream. It appends a NULL terminator to the end of the String. This method writes a C NULL terminated string limited in length to the backend server. It pads the string with null bytes to the size specified. Write a 32-bit integer to the given stream in the correct byte order. Read a 32-bit integer from the given stream in the correct byte order. Write a 16-bit integer to the given stream in the correct byte order. Read a 16-bit integer from the given stream in the correct byte order. Summary description for LargeObjectManager. Provide event handlers to convert all native supported basic data types from their backend text representation to a .NET object. Binary data. Convert a postgresql boolean to a System.Boolean. Convert a postgresql bit to a System.Boolean. Convert a postgresql datetime to a System.DateTime. Convert a postgresql date to a System.DateTime. Convert a postgresql time to a System.DateTime. Convert a postgresql money to a System.Decimal. Provide event handlers to convert the basic native supported data types from native form to backend representation. Binary data. Convert to a postgresql boolean. Convert to a postgresql bit. Convert to a postgresql timestamp. Convert to a postgresql date. Convert to a postgresql time. Convert to a postgres money. Provide event handlers to convert extended native supported data types from their backend text representation to a .NET object. Convert a postgresql point to a System.NpgsqlPoint. Convert a postgresql point to a System.RectangleF. LDeg. Path. Polygon. Circle. Inet. Provide event handlers to convert extended native supported data types from native form to backend representation. Point. Box. LSeg. Open path. Polygon. Circle. Convert to a postgres inet. Represents a PostgreSQL Point type Represents a PostgreSQL Line Segment type. Represents a PostgreSQL Path type. Represents a PostgreSQL Polygon type. Represents a PostgreSQL Circle type. Represents a PostgreSQL inet type. This class contains helper methods for type conversion between the .Net type system and postgresql. A cache of basic datatype mappings keyed by server version. This way we don't have to load the basic type mappings for every connection. Find a NpgsqlNativeTypeInfo in the default types map that can handle objects of the given NpgsqlDbType. Find a NpgsqlNativeTypeInfo in the default types map that can handle objects of the given DbType. Find a NpgsqlNativeTypeInfo in the default types map that can handle objects of the given System.Type. This method is responsible to convert the string received from the backend to the corresponding NpgsqlType. The given TypeInfo is called upon to do the conversion. If no TypeInfo object is provided, no conversion is performed. Create the one and only native to backend type map. This map is used when formatting native data types to backend representations. This method creates (or retrieves from cache) a mapping between type and OID of all natively supported postgresql data types. This is needed as from one version to another, this mapping can be changed and so we avoid hardcoding them. NpgsqlTypeMapping containing all known data types. The mapping must be cloned before it is modified because it is cached; changes made by one connection may effect another connection. Attempt to map types by issuing a query against pg_type. This function takes a list of NpgsqlTypeInfo and attempts to resolve the OID field of each by querying pg_type. If the mapping is found, the type info object is updated (OID) and added to the provided NpgsqlTypeMapping object. NpgsqlConnector to send query through. Mapping object to add types too. List of types that need to have OID's mapped. Delegate called to convert the given backend data to its native representation. Delegate called to convert the given native data to its backand representation. Represents a backend data type. This class can be called upon to convert a backend field representation to a native object. Construct a new NpgsqlTypeInfo with the given attributes and conversion handlers. Type OID provided by the backend server. Type name provided by the backend server. NpgsqlDbType System type to convert fields of this type to. Data conversion handler. Perform a data conversion from a backend representation to a native object. Data sent from the backend. Type modifier field sent from the backend. Type OID provided by the backend server. Type name provided by the backend server. NpgsqlDbType. NpgsqlDbType. System type to convert fields of this type to. Represents a backend data type. This class can be called upon to convert a native object to its backend field representation, Construct a new NpgsqlTypeInfo with the given attributes and conversion handlers. Type OID provided by the backend server. Type name provided by the backend server. NpgsqlDbType System type to convert fields of this type to. Data conversion handler. Data conversion handler. Perform a data conversion from a native object to a backend representation. DBNull and null values are handled differently depending if a plain query is used When Native .NET object to be converted. Flag indicating if the conversion has to be done for plain queries or extended queries Type name provided by the backend server. NpgsqlDbType. DbType. Apply quoting. Use parameter size information. Provide mapping between type OID, type name, and a NpgsqlBackendTypeInfo object that represents it. Construct an empty mapping. Copy constuctor. Add the given NpgsqlBackendTypeInfo to this mapping. Add a new NpgsqlBackendTypeInfo with the given attributes and conversion handlers to this mapping. Type OID provided by the backend server. Type name provided by the backend server. NpgsqlDbType System type to convert fields of this type to. Data conversion handler. Make a shallow copy of this type mapping. Determine if a NpgsqlBackendTypeInfo with the given backend type OID exists in this mapping. Determine if a NpgsqlBackendTypeInfo with the given backend type name exists in this mapping. Get the number of type infos held. Retrieve the NpgsqlBackendTypeInfo with the given backend type OID, or null if none found. Retrieve the NpgsqlBackendTypeInfo with the given backend type name, or null if none found. Provide mapping between type Type, NpgsqlDbType and a NpgsqlNativeTypeInfo object that represents it. Construct an empty mapping. Add the given NpgsqlNativeTypeInfo to this mapping. Add a new NpgsqlNativeTypeInfo with the given attributes and conversion handlers to this mapping. Type OID provided by the backend server. Type name provided by the backend server. NpgsqlDbType Data conversion handler. Data conversion handler. Determine if a NpgsqlNativeTypeInfo with the given backend type name exists in this mapping. Determine if a NpgsqlNativeTypeInfo with the given NpgsqlDbType exists in this mapping. Determine if a NpgsqlNativeTypeInfo with the given Type name exists in this mapping. Get the number of type infos held. Retrieve the NpgsqlNativeTypeInfo with the given backend type name, or null if none found. Retrieve the NpgsqlNativeTypeInfo with the given NpgsqlDbType, or null if none found. Retrieve the NpgsqlNativeTypeInfo with the given DbType, or null if none found. Retrieve the NpgsqlNativeTypeInfo with the given Type, or null if none found. An UITypeEditor that simply initializes a ConnectionStringEditorForm if possible Edits the Value of the given Object using the EditSyle given by GetEditStyle. An ITypeDescriptorContext, through wich you can get additional context information. An IServiceProvider, through which this editor may order services. The Object to edit The new value of the Object Requests the EditSyle to be used by EditValue An ITypeDescriptorContext, through wich you can get additional context information. An UITypeEditorEditStyle-Value, indicating the EditStyle used by EditValue. If UITypeEditor doesn't support this method, GetEditStyle returns the value None. Required designer variable. Clean up any resources being used. Required method for Designer support - do not modify the contents of this method with the code editor. Returns the generated ConnectionString Zusammenfassung fr NpgsqlParameterConverter. Zusammenfassung fr NpgsqlParametersEditor.