Method | Description | |
---|---|---|
DeriveParameters ( |
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, ...
|
|
GetDeleteCommand ( ) : |
Gets the automatically generated System.Data.Common.DbCommand object required to perform deletions at the data source.
|
|
GetDeleteCommand ( bool useColumnsForParameterNames ) : |
Gets the automatically generated NpgsqlCommand object required to perform deletions at the data source, optionally using columns for parameter names.
|
|
GetInsertCommand ( ) : |
Gets the automatically generated NpgsqlCommand object required to perform insertions at the data source.
|
|
GetInsertCommand ( bool useColumnsForParameterNames ) : |
Gets the automatically generated NpgsqlCommand object required to perform insertions at the data source, optionally using columns for parameter names.
|
|
GetUpdateCommand ( ) : |
Gets the automatically generated System.Data.Common.DbCommand object required to perform updates at the data source.
|
|
GetUpdateCommand ( bool useColumnsForParameterNames ) : |
Gets the automatically generated NpgsqlCommand object required to perform updates at the data source, optionally using columns for parameter names.
|
|
NpgsqlCommandBuilder ( ) : System |
Initializes a new instance of the NpgsqlCommandBuilder class.
|
|
NpgsqlCommandBuilder ( Npgsql.NpgsqlDataAdapter adapter ) : System |
Initializes a new instance of the NpgsqlCommandBuilder class.
|
|
QuoteIdentifier ( string unquotedIdentifier ) : string |
Given an unquoted identifier in the correct catalog case, returns the correct quoted form of that identifier, including properly escaping any embedded quotes in the identifier.
|
|
UnquoteIdentifier ( string quotedIdentifier ) : string |
Given a quoted identifier, returns the correct unquoted form of that identifier, including properly un-escaping any embedded quotes in the identifier.
|
Method | Description | |
---|---|---|
ApplyParameterInfo ( |
Applies the parameter information.
|
|
GetParameterName ( int parameterOrdinal ) : string |
Returns the name of the specified parameter in the format of @p#.
|
|
GetParameterName ( string parameterName ) : string |
Returns the full parameter name, given the partial parameter name.
|
|
GetParameterPlaceholder ( int parameterOrdinal ) : string |
Returns the placeholder for the parameter in the associated SQL statement.
|
|
SetRowUpdatingHandler ( |
Registers the T:NpgsqlCommandBuilder to handle the E:NpgsqlDataAdapter.RowUpdating event for a T:NpgsqlDataAdapter.
|
Method | Description | |
---|---|---|
DoDeriveParameters ( |
||
RowUpdatingHandler ( object sender, Npgsql.NpgsqlRowUpdatingEventArgs e ) : void |
Adds an event handler for the NpgsqlDataAdapter.RowUpdating event.
|
protected ApplyParameterInfo ( |
||
p | The parameter. | |
row | The row. | |
statementType | System | Type of the statement. |
whereClause | bool | if set to |
return | void |
public static DeriveParameters ( |
||
command | NpgsqlCommand whose function parameters will be obtained. | |
return | void |
public GetDeleteCommand ( bool useColumnsForParameterNames ) : |
||
useColumnsForParameterNames | bool |
/// If |
return |
public GetInsertCommand ( bool useColumnsForParameterNames ) : |
||
useColumnsForParameterNames | bool |
/// If |
return |
protected GetParameterName ( int parameterOrdinal ) : string | ||
parameterOrdinal | int | The number to be included as part of the parameter's name.. |
return | string |
protected GetParameterName ( string parameterName ) : string | ||
parameterName | string | The partial name of the parameter. |
return | string |
protected GetParameterPlaceholder ( int parameterOrdinal ) : string | ||
parameterOrdinal | int | The number to be included as part of the parameter's name. |
return | string |
public GetUpdateCommand ( bool useColumnsForParameterNames ) : |
||
useColumnsForParameterNames | bool |
/// If |
return |
public NpgsqlCommandBuilder ( Npgsql.NpgsqlDataAdapter adapter ) : System | ||
adapter | Npgsql.NpgsqlDataAdapter | The adapter. |
return | System |
public QuoteIdentifier ( string unquotedIdentifier ) : string | ||
unquotedIdentifier | string | The original unquoted identifier. |
return | string |
protected SetRowUpdatingHandler ( |
||
adapter | The |
|
return | void |
public UnquoteIdentifier ( string quotedIdentifier ) : string | ||
quotedIdentifier | string | The identifier that will have its embedded quotes removed. |
return | string |