[]
        
(Showing Draft Content)

C1.AdoNet.OData.C1ODataCommand

C1ODataCommand Class

Contains the details of a command and can execute it over an C1ODataConnection.

Namespace: C1.AdoNet.OData
Assembly: C1.AdoNet.OData.dll
Syntax
public sealed class C1ODataCommand : C1CommandBase<C1ODataCommand>, IComponent, IDbCommand, IDisposable, IAsyncDisposable, ICloneable

Constructors

Name Description
C1ODataCommand()

Create a C1ODataCommand instance. Creates an instance of a db command, executable over an C1ODataConnection.

C1ODataCommand(C1ODataConnection)

Creates an instance of a db command, specifying an C1ODataConnection to be executed over.

C1ODataCommand(C1ODataConnection, string)

Creates a db command from a specific text, specifying an C1ODataConnection to be executed over.

Properties

Name Description
CanGetNextData

To check whether or not more data can be retrieved from the source as the result of executing this C1ODataCommand.

CommandTimeout

Gets or sets the wait time before terminating the attempt to execute a command and generating an error.

CommandType

Indicates or specifies how the CommandText property is interpreted.

DbConnection

Gets or sets the DbConnection used by this C1ODataCommand.

DesignTimeVisible

Gets or sets a value indicating whether the command object should be visible in a customized interface control. true, if the command object should be visible in a control; otherwise false. The default is true.

UpdatedRowSource

Gets or sets how command results are applied to the System.Data.DataRow when used by the Update method of a DbDataAdapter.

Methods

Name Description
ExecuteBatchCoreAsync(IList<ISQLStatement>, CancellationToken)

Executes a list of non-query statements as a batch.

ExecuteNonQueryCoreAsync(ISQLStatement, CancellationToken, SourceTable)

Executes a single non-query SQL statement.

ExecutePrimitiveSqlAsync(SelectStatement, CancellationToken, bool)

Executes a select directly on the OData server.

GetNextResultAsync(CancellationToken)

Requests more rows from the result of the last executed command.

GetRequiredColumnNames(string, IList<AssignExpression>)

Gets the column names used to identify a specific row in an UPDATE or DELETE statement.

Prepare()

Creates a prepared (or compiled) version of the command on the data source.

SupportColumnExpression(SelectStatement)

Checks whether the column expressions of the passed selectStatement can or cannot be executed on the server.

SupportDelete(DeleteStatement)

Checks whether the passed deleteStatement can or cannot be executed on the server.

SupportGroupBy(GroupbyClause)

Checks whether the passed groupby can or cannot be executed on the server.

SupportInsert(InsertStatement)

Checks whether the passed insertStatement can or cannot be executed on the server.

SupportJoin(SelectStatement)

Checks whether the passed joinStatement can or cannot be executed on the server.

SupportLimit(SelectStatement)

Checks whether the LIMIT expression of the passed selectStmt can or cannot be executed on the server.

SupportOrderBy(IList<OrderbyColumn>)

Checks whether the passed orderBy can or cannot be executed on the server.

SupportUpdate(UpdateStatement)

Checks whether the passed updateStatement can or cannot be executed on the server.

SupportWhere(IExpression)

Checks whether the passed where can or cannot be executed on the server.

ValidateStatement(ISQLStatement)

Checks if the passed statement is considered valid for the underlying provider.