# C1.AdoNet.OData.C1ODataCommand

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_AdoNet_OData_C1ODataCommand" data-uid="C1.AdoNet.OData.C1ODataCommand" class="text-break">C1ODataCommand Class
</h1>
  <div class="markdown level0 summary"><p>Contains the details of a command and can execute it over an <a class="xref" href="C1.AdoNet.OData.C1ODataConnection.html">C1ODataConnection</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbcommand">DbCommand</a></div>
    <div class="level4"><a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1CommandBase.html">C1CommandBase</a></div>
    <div class="level5"><a class="xref" href="C1.DataConnector.AdoNet.C1CommandBase-1.html">C1CommandBase</a>&lt;<a class="xref" href="C1.AdoNet.OData.C1ODataCommand.html">C1ODataCommand</a>&gt;</div>
    <div class="level6"><span class="xref">C1ODataCommand</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.idbcommand">IDbCommand</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iasyncdisposable">IAsyncDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.AdoNet.OData.html">C1.AdoNet.OData</a></h6>
  <h6><strong>Assembly</strong>: C1.AdoNet.OData.dll</h6>
  <h5 id="C1_AdoNet_OData_C1ODataCommand_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class C1ODataCommand : C1CommandBase&lt;C1ODataCommand&gt;, IComponent, IDbCommand, IDisposable, IAsyncDisposable, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class C1ODataCommand
    Inherits C1CommandBase(Of C1ODataCommand)
    Implements IComponent, IDbCommand, IDisposable, IAsyncDisposable, ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand__ctor" data-uid="C1.AdoNet.OData.C1ODataCommand.#ctor">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.-ctor.html#C1_AdoNet_OData_C1ODataCommand__ctor">C1ODataCommand()</a>
        </td>
        <td class="markdown level1 summary"><p>Create a <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.html">C1ODataCommand</a> instance.
Creates an instance of a db command, executable over an <a class="xref" href="C1.AdoNet.OData.C1ODataConnection.html">C1ODataConnection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand__ctor_C1_AdoNet_OData_C1ODataConnection_" data-uid="C1.AdoNet.OData.C1ODataCommand.#ctor(C1.AdoNet.OData.C1ODataConnection)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.-ctor.html#C1_AdoNet_OData_C1ODataCommand__ctor_C1_AdoNet_OData_C1ODataConnection_">C1ODataCommand(C1ODataConnection)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of a db command, specifying an <a class="xref" href="C1.AdoNet.OData.C1ODataConnection.html">C1ODataConnection</a> to be executed over.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand__ctor_C1_AdoNet_OData_C1ODataConnection_System_String_" data-uid="C1.AdoNet.OData.C1ODataCommand.#ctor(C1.AdoNet.OData.C1ODataConnection,System.String)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.-ctor.html#C1_AdoNet_OData_C1ODataCommand__ctor_C1_AdoNet_OData_C1ODataConnection_System_String_">C1ODataCommand(C1ODataConnection, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a db command from a specific text, specifying an <a class="xref" href="C1.AdoNet.OData.C1ODataConnection.html">C1ODataConnection</a> to be executed over.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_CanGetNextData" data-uid="C1.AdoNet.OData.C1ODataCommand.CanGetNextData">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.CanGetNextData.html#C1_AdoNet_OData_C1ODataCommand_CanGetNextData">CanGetNextData</a>
        </td>
        <td class="markdown level1 summary"><p>To check whether or not more data can be retrieved from the source as the result of executing this <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.html">C1ODataCommand</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_CommandTimeout" data-uid="C1.AdoNet.OData.C1ODataCommand.CommandTimeout">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.CommandTimeout.html#C1_AdoNet_OData_C1ODataCommand_CommandTimeout">CommandTimeout</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the wait time before terminating the attempt to execute a command and generating an error.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_CommandType" data-uid="C1.AdoNet.OData.C1ODataCommand.CommandType">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.CommandType.html#C1_AdoNet_OData_C1ODataCommand_CommandType">CommandType</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates or specifies how the <a class="xref" href="../C1.AdoNet.CSV/C1.DataConnector.AdoNet.C1CommandBase.CommandText.html#C1_DataConnector_AdoNet_C1CommandBase_CommandText">CommandText</a> property is interpreted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_DbConnection" data-uid="C1.AdoNet.OData.C1ODataCommand.DbConnection">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.DbConnection.html#C1_AdoNet_OData_C1ODataCommand_DbConnection">DbConnection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbconnection">DbConnection</a> used by this <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.html">C1ODataCommand</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_DesignTimeVisible" data-uid="C1.AdoNet.OData.C1ODataCommand.DesignTimeVisible">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.DesignTimeVisible.html#C1_AdoNet_OData_C1ODataCommand_DesignTimeVisible">DesignTimeVisible</a>
        </td>
        <td class="markdown level1 summary"><p>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.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_UpdatedRowSource" data-uid="C1.AdoNet.OData.C1ODataCommand.UpdatedRowSource">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.UpdatedRowSource.html#C1_AdoNet_OData_C1ODataCommand_UpdatedRowSource">UpdatedRowSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets how command results are applied to the System.Data.DataRow when
used by the Update method of a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbdataadapter">DbDataAdapter</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_ExecuteBatchCoreAsync_System_Collections_Generic_IList_C1_DataConnector_ISQLStatement__System_Threading_CancellationToken_" data-uid="C1.AdoNet.OData.C1ODataCommand.ExecuteBatchCoreAsync(System.Collections.Generic.IList{C1.DataConnector.ISQLStatement},System.Threading.CancellationToken)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.ExecuteBatchCoreAsync.html#C1_AdoNet_OData_C1ODataCommand_ExecuteBatchCoreAsync_System_Collections_Generic_IList_C1_DataConnector_ISQLStatement__System_Threading_CancellationToken_">ExecuteBatchCoreAsync(IList&lt;ISQLStatement&gt;, CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Executes a list of non-query statements as a batch.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_ExecuteNonQueryCoreAsync_C1_DataConnector_ISQLStatement_System_Threading_CancellationToken_C1_DataConnector_SourceTable_" data-uid="C1.AdoNet.OData.C1ODataCommand.ExecuteNonQueryCoreAsync(C1.DataConnector.ISQLStatement,System.Threading.CancellationToken,C1.DataConnector.SourceTable)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.ExecuteNonQueryCoreAsync.html#C1_AdoNet_OData_C1ODataCommand_ExecuteNonQueryCoreAsync_C1_DataConnector_ISQLStatement_System_Threading_CancellationToken_C1_DataConnector_SourceTable_">ExecuteNonQueryCoreAsync(ISQLStatement, CancellationToken, SourceTable)</a>
        </td>
        <td class="markdown level1 summary"><p>Executes a single non-query SQL statement.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_ExecutePrimitiveSqlAsync_C1_DataConnector_SelectStatement_System_Threading_CancellationToken_System_Boolean_" data-uid="C1.AdoNet.OData.C1ODataCommand.ExecutePrimitiveSqlAsync(C1.DataConnector.SelectStatement,System.Threading.CancellationToken,System.Boolean)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.ExecutePrimitiveSqlAsync.html#C1_AdoNet_OData_C1ODataCommand_ExecutePrimitiveSqlAsync_C1_DataConnector_SelectStatement_System_Threading_CancellationToken_System_Boolean_">ExecutePrimitiveSqlAsync(SelectStatement, CancellationToken, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Executes a <code class="paramref">select</code> directly on the OData server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_GetNextResultAsync_System_Threading_CancellationToken_" data-uid="C1.AdoNet.OData.C1ODataCommand.GetNextResultAsync(System.Threading.CancellationToken)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.GetNextResultAsync.html#C1_AdoNet_OData_C1ODataCommand_GetNextResultAsync_System_Threading_CancellationToken_">GetNextResultAsync(CancellationToken)</a>
        </td>
        <td class="markdown level1 summary"><p>Requests more rows from the result of the last executed command.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_GetRequiredColumnNames_System_String_System_Collections_Generic_IList_C1_DataConnector_AssignExpression__" data-uid="C1.AdoNet.OData.C1ODataCommand.GetRequiredColumnNames(System.String,System.Collections.Generic.IList{C1.DataConnector.AssignExpression})">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.GetRequiredColumnNames.html#C1_AdoNet_OData_C1ODataCommand_GetRequiredColumnNames_System_String_System_Collections_Generic_IList_C1_DataConnector_AssignExpression__">GetRequiredColumnNames(string, IList&lt;AssignExpression&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the column names used to identify a specific row in an UPDATE or DELETE statement.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_Prepare" data-uid="C1.AdoNet.OData.C1ODataCommand.Prepare">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.Prepare.html#C1_AdoNet_OData_C1ODataCommand_Prepare">Prepare()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a prepared (or compiled) version of the command on the data source.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_SupportColumnExpression_C1_DataConnector_SelectStatement_" data-uid="C1.AdoNet.OData.C1ODataCommand.SupportColumnExpression(C1.DataConnector.SelectStatement)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.SupportColumnExpression.html#C1_AdoNet_OData_C1ODataCommand_SupportColumnExpression_C1_DataConnector_SelectStatement_">SupportColumnExpression(SelectStatement)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the column expressions of the passed <code class="paramref">selectStatement</code> can or
cannot be executed on the server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_SupportDelete_C1_DataConnector_DeleteStatement_" data-uid="C1.AdoNet.OData.C1ODataCommand.SupportDelete(C1.DataConnector.DeleteStatement)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.SupportDelete.html#C1_AdoNet_OData_C1ODataCommand_SupportDelete_C1_DataConnector_DeleteStatement_">SupportDelete(DeleteStatement)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the passed <code class="paramref">deleteStatement</code> can or cannot be executed on the server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_SupportGroupBy_C1_DataConnector_GroupbyClause_" data-uid="C1.AdoNet.OData.C1ODataCommand.SupportGroupBy(C1.DataConnector.GroupbyClause)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.SupportGroupBy.html#C1_AdoNet_OData_C1ODataCommand_SupportGroupBy_C1_DataConnector_GroupbyClause_">SupportGroupBy(GroupbyClause)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the passed <code class="paramref">groupby</code> can or cannot be executed on the server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_SupportInsert_C1_DataConnector_InsertStatement_" data-uid="C1.AdoNet.OData.C1ODataCommand.SupportInsert(C1.DataConnector.InsertStatement)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.SupportInsert.html#C1_AdoNet_OData_C1ODataCommand_SupportInsert_C1_DataConnector_InsertStatement_">SupportInsert(InsertStatement)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the passed <code class="paramref">insertStatement</code> can or cannot be executed on the server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_SupportJoin_C1_DataConnector_SelectStatement_" data-uid="C1.AdoNet.OData.C1ODataCommand.SupportJoin(C1.DataConnector.SelectStatement)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.SupportJoin.html#C1_AdoNet_OData_C1ODataCommand_SupportJoin_C1_DataConnector_SelectStatement_">SupportJoin(SelectStatement)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the passed <code class="paramref">joinStatement</code> can or cannot be executed on the server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_SupportLimit_C1_DataConnector_SelectStatement_" data-uid="C1.AdoNet.OData.C1ODataCommand.SupportLimit(C1.DataConnector.SelectStatement)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.SupportLimit.html#C1_AdoNet_OData_C1ODataCommand_SupportLimit_C1_DataConnector_SelectStatement_">SupportLimit(SelectStatement)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the LIMIT expression of the passed <code class="paramref">selectStmt</code> can or cannot be executed on the server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_SupportOrderBy_System_Collections_Generic_IList_C1_DataConnector_OrderbyColumn__" data-uid="C1.AdoNet.OData.C1ODataCommand.SupportOrderBy(System.Collections.Generic.IList{C1.DataConnector.OrderbyColumn})">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.SupportOrderBy.html#C1_AdoNet_OData_C1ODataCommand_SupportOrderBy_System_Collections_Generic_IList_C1_DataConnector_OrderbyColumn__">SupportOrderBy(IList&lt;OrderbyColumn&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the passed <code class="paramref">orderBy</code> can or cannot be executed on the server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_SupportUpdate_C1_DataConnector_UpdateStatement_" data-uid="C1.AdoNet.OData.C1ODataCommand.SupportUpdate(C1.DataConnector.UpdateStatement)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.SupportUpdate.html#C1_AdoNet_OData_C1ODataCommand_SupportUpdate_C1_DataConnector_UpdateStatement_">SupportUpdate(UpdateStatement)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the passed <code class="paramref">updateStatement</code> can or cannot be executed on the server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_SupportWhere_C1_DataConnector_IExpression_" data-uid="C1.AdoNet.OData.C1ODataCommand.SupportWhere(C1.DataConnector.IExpression)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.SupportWhere.html#C1_AdoNet_OData_C1ODataCommand_SupportWhere_C1_DataConnector_IExpression_">SupportWhere(IExpression)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the passed <code class="paramref">where</code> can or cannot be executed on the server.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_OData_C1ODataCommand_ValidateStatement_C1_DataConnector_ISQLStatement_" data-uid="C1.AdoNet.OData.C1ODataCommand.ValidateStatement(C1.DataConnector.ISQLStatement)">
          <a class="xref" href="C1.AdoNet.OData.C1ODataCommand.ValidateStatement.html#C1_AdoNet_OData_C1ODataCommand_ValidateStatement_C1_DataConnector_ISQLStatement_">ValidateStatement(ISQLStatement)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks if the passed statement is considered valid for the underlying provider.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
