Npgsql.NpgsqlConnector.Query C# (CSharp) Method

Query() private method

private Query ( NpgsqlQuery query ) : void
query NpgsqlQuery
return void
        internal void Query(NpgsqlQuery query)
        {
            CurrentState.Query(this, query);
        }

Usage Example

        internal static void ExecuteBlindSuppressTimeout(NpgsqlConnector connector, NpgsqlQuery query)
        {
            // Block the notification thread before writing anything to the wire.
            using (var blocker = connector.BlockNotificationThread())
            {
                // Write the Query message to the wire.
                connector.Query(query);

                // Flush, and wait for and discard all responses.
                connector.ProcessAndDiscardBackendResponses();
            }
        }
All Usage Examples Of Npgsql.NpgsqlConnector::Query