C# Class System.Data.Common.DbCommandBuilder

Inheritance: System.ComponentModel.Component
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
BuildCache void
BuildDeleteCommand DbCommand
BuildInformation void
BuildInsertCommand DbCommand
BuildUpdateCommand DbCommand
BuildWhereClause int
CreateParameterForNullTest string
CreateParameterForValue string
GetBaseParameterName string
GetColumnValue object
GetColumnValue object
GetConnection DbConnection
GetDataColumn DataColumn
GetDeleteCommand DbCommand
GetInsertCommand DbCommand
GetNextParameter DbParameter
GetNullParameterName string
GetOriginalParameterName string
GetSelectCommand DbCommand
GetTableMapping DataTableMapping
GetUpdateCommand DbCommand
IncludeInInsertValues bool
IncludeInUpdateSet bool
IncludeInWhereClause bool
IncrementWhereCount bool
ParseProcedureName string[]
QuotedColumn string
RemoveExtraParameters void
RowUpdatingHandlerBuilder void

Méthodes publiques

Méthode Description
GetDeleteCommand ( ) : DbCommand
GetDeleteCommand ( bool useColumnsForParameterNames ) : DbCommand
GetInsertCommand ( ) : DbCommand
GetInsertCommand ( bool useColumnsForParameterNames ) : DbCommand
GetUpdateCommand ( ) : DbCommand
GetUpdateCommand ( bool useColumnsForParameterNames ) : DbCommand
QuoteIdentifier ( string unquotedIdentifier ) : string
RefreshSchema ( ) : void
UnquoteIdentifier ( string quotedIdentifier ) : string

Méthodes protégées

Méthode Description
ApplyParameterInfo ( DbParameter parameter, DataRow row, StatementType statementType, bool whereClause ) : void
DbCommandBuilder ( ) : System.ComponentModel
Dispose ( bool disposing ) : void
GetParameterName ( int parameterOrdinal ) : string
GetParameterName ( string parameterName ) : string
GetParameterPlaceholder ( int parameterOrdinal ) : string
GetSchemaTable ( DbCommand sourceCommand ) : DataTable
InitializeCommand ( DbCommand command ) : DbCommand
RowUpdatingHandler ( RowUpdatingEventArgs rowUpdatingEvent ) : void
SetRowUpdatingHandler ( DbDataAdapter adapter ) : void

Private Methods

Méthode Description
BuildCache ( bool closeConnection, DataRow dataRow, bool useColumnsForParameterNames ) : void
BuildDeleteCommand ( DataTableMapping mappings, DataRow dataRow ) : DbCommand
BuildInformation ( DataTable schemaTable ) : void
BuildInsertCommand ( DataTableMapping mappings, DataRow dataRow ) : DbCommand
BuildUpdateCommand ( DataTableMapping mappings, DataRow dataRow ) : DbCommand
BuildWhereClause ( DataTableMapping mappings, DataRow dataRow, StringBuilder builder, DbCommand command, int parameterCount, bool isUpdate ) : int
CreateParameterForNullTest ( DbCommand command, string parameterName, string sourceColumn, DataRowVersion version, int parameterCount, object value, DbSchemaRow row, StatementType statementType, bool whereClause ) : string
CreateParameterForValue ( DbCommand command, string parameterName, string sourceColumn, DataRowVersion version, int parameterCount, object value, DbSchemaRow row, StatementType statementType, bool whereClause ) : string
GetBaseParameterName ( int index ) : string
GetColumnValue ( DataRow row, DataColumn column, DataRowVersion version ) : object
GetColumnValue ( DataRow row, string columnName, DataTableMapping mappings, DataRowVersion version ) : object
GetConnection ( ) : DbConnection
GetDataColumn ( string columnName, DataTableMapping tablemapping, DataRow row ) : DataColumn
GetDeleteCommand ( DataRow dataRow, bool useColumnsForParameterNames ) : DbCommand
GetInsertCommand ( DataRow dataRow, bool useColumnsForParameterNames ) : DbCommand
GetNextParameter ( DbCommand command, int pcount ) : DbParameter
GetNullParameterName ( int index ) : string
GetOriginalParameterName ( int index ) : string
GetSelectCommand ( ) : DbCommand
GetTableMapping ( DataRow dataRow ) : DataTableMapping
GetUpdateCommand ( DataRow dataRow, bool useColumnsForParameterNames ) : DbCommand
IncludeInInsertValues ( DbSchemaRow row ) : bool
IncludeInUpdateSet ( DbSchemaRow row ) : bool
IncludeInWhereClause ( DbSchemaRow row, bool isUpdate ) : bool
IncrementWhereCount ( DbSchemaRow row ) : bool
ParseProcedureName ( string name, string quotePrefix, string quoteSuffix ) : string[]
QuotedColumn ( string column ) : string
RemoveExtraParameters ( DbCommand command, int usedParameterCount ) : void
RowUpdatingHandlerBuilder ( RowUpdatingEventArgs rowUpdatingEvent ) : void

Method Details

ApplyParameterInfo() protected abstract méthode

protected abstract ApplyParameterInfo ( DbParameter parameter, DataRow row, StatementType statementType, bool whereClause ) : void
parameter DbParameter
row DataRow
statementType StatementType
whereClause bool
Résultat void

DbCommandBuilder() protected méthode

protected DbCommandBuilder ( ) : System.ComponentModel
Résultat System.ComponentModel

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetDeleteCommand() public méthode

public GetDeleteCommand ( ) : DbCommand
Résultat DbCommand

GetDeleteCommand() public méthode

public GetDeleteCommand ( bool useColumnsForParameterNames ) : DbCommand
useColumnsForParameterNames bool
Résultat DbCommand

GetInsertCommand() public méthode

public GetInsertCommand ( ) : DbCommand
Résultat DbCommand

GetInsertCommand() public méthode

public GetInsertCommand ( bool useColumnsForParameterNames ) : DbCommand
useColumnsForParameterNames bool
Résultat DbCommand

GetParameterName() protected abstract méthode

protected abstract GetParameterName ( int parameterOrdinal ) : string
parameterOrdinal int
Résultat string

GetParameterName() protected abstract méthode

protected abstract GetParameterName ( string parameterName ) : string
parameterName string
Résultat string

GetParameterPlaceholder() protected abstract méthode

protected abstract GetParameterPlaceholder ( int parameterOrdinal ) : string
parameterOrdinal int
Résultat string

GetSchemaTable() protected méthode

protected GetSchemaTable ( DbCommand sourceCommand ) : DataTable
sourceCommand DbCommand
Résultat DataTable

GetUpdateCommand() public méthode

public GetUpdateCommand ( ) : DbCommand
Résultat DbCommand

GetUpdateCommand() public méthode

public GetUpdateCommand ( bool useColumnsForParameterNames ) : DbCommand
useColumnsForParameterNames bool
Résultat DbCommand

InitializeCommand() protected méthode

protected InitializeCommand ( DbCommand command ) : DbCommand
command DbCommand
Résultat DbCommand

QuoteIdentifier() public méthode

public QuoteIdentifier ( string unquotedIdentifier ) : string
unquotedIdentifier string
Résultat string

RefreshSchema() public méthode

public RefreshSchema ( ) : void
Résultat void

RowUpdatingHandler() protected méthode

protected RowUpdatingHandler ( RowUpdatingEventArgs rowUpdatingEvent ) : void
rowUpdatingEvent RowUpdatingEventArgs
Résultat void

SetRowUpdatingHandler() protected abstract méthode

protected abstract SetRowUpdatingHandler ( DbDataAdapter adapter ) : void
adapter DbDataAdapter
Résultat void

UnquoteIdentifier() public méthode

public UnquoteIdentifier ( string quotedIdentifier ) : string
quotedIdentifier string
Résultat string