PgSqlCommand Constructor(String)
Initializes a new instance of the
PgSqlCommand class with the text of the query.
The following example creates a
PgSqlCommand and sets some of its properties.
public void CreatePgSqlCommand()
{
string mySelectQuery = "SELECT * FROM Test.Dept";
PgSqlCommand pgCommand = new PgSqlCommand(mySelectQuery);
pgCommand.FetchSize = 100;
}
Public Sub CreatePgSqlCommand()
Dim mySelectQuery As String = "SELECT * FROM Test.Dept"
Dim pgCommand As New PgSqlCommand(mySelectQuery)
pgCommand.FetchSize = 100
End Sub