CustomSqlCommandBuilder Class

Custom Command builder for SQLServer class

Inheritance Hierarchy

Namespace: DBaddinAssembly: DBaddin in (DBaddin.dll)

Syntax

public class CustomSqlCommandBuilder : CustomCommandBuilder

The CustomSqlCommandBuilder type exposes the following members.

Constructors

ClassSummary
public constructorCustomSqlCommandBuilder(DataTable, SqlConnection, DataColumn[], Collection)

Methods

NameSummary
private methodCreateOldParam(DataColumn)
build "old" (for where clause) SqlParameter for DataColumn column
private methodCreateParam(DataColumn)
build "new" (for set clause) SqlParameter for DataColumn column
public methodDeleteCommand()
Creates Delete command
private methodGetTextCommand(String)
build a specific Sql command to be used for the Insert, Update and Delete builders
public methodInsertCommand()
Creates Insert command with support for Auto-increment (Identity) fields
public methodUpdateCommand()
Creates Update command

Fields

NameDescription
private fieldconnection
the driver specific connection needed to get the driver specific command in GetTextCommand
private fieldschemaDataTypeCollection
collection for casting .NET data type to ADO.NET DbType in DBModifHelper.TypeToDbType