[]
        
(Showing Draft Content)

C1.DataConnector.AdoNet.C1CommandBuilderBase

C1CommandBuilderBase Class

Automatically generates single-table commands used to reconcile changes made to a DataSet with the associated database. This is an abstract class that can only be inherited.

Implements
Namespace: C1.DataConnector.AdoNet
Assembly: C1.AdoNet.Magento.dll
Syntax
public abstract class C1CommandBuilderBase : DbCommandBuilder, IComponent, IDisposable

Constructors

Name Description
C1CommandBuilderBase(C1DataAdapterBase, ILogger)

Initializes a new instance of a class that inherits from the C1CommandBuilderBase class receive a C1DataAdapterBase as input parameter.

C1CommandBuilderBase(ILogger)

Initializes a new instance of a class that inherits from the C1CommandBuilderBase class.

Properties

Name Description
Logger

The logger where the runtime messages are passed to.

Methods

Name Description
ApplyParameterInfo(DbParameter, DataRow, StatementType, bool)

Handle additional parameter properties.

GetParameterName(int)

Returns the name of the specified parameter in the format of p*#*. Use when building a custom command builder.

GetParameterName(string)

Returns the full parameter name, given the partial parameter name.

GetParameterPlaceholder(int)

Returns the placeholder for the parameter in the associated SQL statement.

QuoteIdentifier(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.

SetRowUpdatingHandler(DbDataAdapter)

Registers the C1CommandBuilderBase to handle the RowUpdating event for a C1DataAdapterBase.

UnquoteIdentifier(string)

Given a quoted identifier, returns the correct unquoted form of that identifier, including properly un-escaping any embedded quotes in the identifier.