Show / Hide Table of Contents

Class CustomOleDbCommandBuilder

Custom Command builder for OleDB to avoid primary key problems with built-in ones derived (transposed into VB.NET) from https://www.cogin.com/articles/CustomCommandBuilder.php Copyright by Dejan Grujic 2004. http://www.cogin.com

Inheritance
System.Object
CustomCommandBuilder
CustomOleDbCommandBuilder
Inherited Members
CustomCommandBuilder.dataTable
CustomCommandBuilder.allColumns
CustomCommandBuilder.TableName()
Namespace: DBaddin
Assembly: DBaddin.dll
Syntax
public class CustomOleDbCommandBuilder : CustomCommandBuilder

Constructors

| Improve this Doc View Source

CustomOleDbCommandBuilder(DataTable, OleDbConnection, DataColumn[], Collection)

Declaration
public CustomOleDbCommandBuilder(DataTable dataTable, OleDbConnection connection, DataColumn[] allColumns, Collection schemaDataTypeCollection)
Parameters
Name Description
dataTable
connection
allColumns
schemaDataTypeCollection

Methods

| Improve this Doc View Source

DeleteCommand()

Creates Delete command

Declaration
public override DbCommand DeleteCommand()
Returns
Description

OleDbCommand for deleting

Overrides
CustomCommandBuilder.DeleteCommand()
| Improve this Doc View Source

InsertCommand()

Creates Insert command with support for Auto-increment (Identity) fields

Declaration
public override DbCommand InsertCommand()
Returns
Description

OleDbCommand for inserting

Overrides
CustomCommandBuilder.InsertCommand()
| Improve this Doc View Source

UpdateCommand()

Creates Update command

Declaration
public override DbCommand UpdateCommand()
Returns
Description

OleDbCommand for updating

Overrides
CustomCommandBuilder.UpdateCommand()
  • Improve this Doc
  • View Source
Back to top Generated by DocFX