C# Класс System.Data.Common.DbCommandBuilder

Наследование: System.ComponentModel.Component
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ApplyParameterInfo() защищенный абстрактный Метод

protected abstract ApplyParameterInfo ( DbParameter parameter, DataRow row, StatementType statementType, bool whereClause ) : void
parameter DbParameter
row DataRow
statementType StatementType
whereClause bool
Результат void

DbCommandBuilder() защищенный Метод

protected DbCommandBuilder ( ) : System.ComponentModel
Результат System.ComponentModel

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetDeleteCommand() публичный Метод

public GetDeleteCommand ( ) : DbCommand
Результат DbCommand

GetDeleteCommand() публичный Метод

public GetDeleteCommand ( bool useColumnsForParameterNames ) : DbCommand
useColumnsForParameterNames bool
Результат DbCommand

GetInsertCommand() публичный Метод

public GetInsertCommand ( ) : DbCommand
Результат DbCommand

GetInsertCommand() публичный Метод

public GetInsertCommand ( bool useColumnsForParameterNames ) : DbCommand
useColumnsForParameterNames bool
Результат DbCommand

GetParameterName() защищенный абстрактный Метод

protected abstract GetParameterName ( int parameterOrdinal ) : string
parameterOrdinal int
Результат string

GetParameterName() защищенный абстрактный Метод

protected abstract GetParameterName ( string parameterName ) : string
parameterName string
Результат string

GetParameterPlaceholder() защищенный абстрактный Метод

protected abstract GetParameterPlaceholder ( int parameterOrdinal ) : string
parameterOrdinal int
Результат string

GetSchemaTable() защищенный Метод

protected GetSchemaTable ( DbCommand sourceCommand ) : DataTable
sourceCommand DbCommand
Результат DataTable

GetUpdateCommand() публичный Метод

public GetUpdateCommand ( ) : DbCommand
Результат DbCommand

GetUpdateCommand() публичный Метод

public GetUpdateCommand ( bool useColumnsForParameterNames ) : DbCommand
useColumnsForParameterNames bool
Результат DbCommand

InitializeCommand() защищенный Метод

protected InitializeCommand ( DbCommand command ) : DbCommand
command DbCommand
Результат DbCommand

QuoteIdentifier() публичный Метод

public QuoteIdentifier ( string unquotedIdentifier ) : string
unquotedIdentifier string
Результат string

RefreshSchema() публичный Метод

public RefreshSchema ( ) : void
Результат void

RowUpdatingHandler() защищенный Метод

protected RowUpdatingHandler ( RowUpdatingEventArgs rowUpdatingEvent ) : void
rowUpdatingEvent RowUpdatingEventArgs
Результат void

SetRowUpdatingHandler() защищенный абстрактный Метод

protected abstract SetRowUpdatingHandler ( DbDataAdapter adapter ) : void
adapter DbDataAdapter
Результат void

UnquoteIdentifier() публичный Метод

public UnquoteIdentifier ( string quotedIdentifier ) : string
quotedIdentifier string
Результат string