# C1.AdoNet.D365S.C1D365SCommand

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_AdoNet_D365S_C1D365SCommand" data-uid="C1.AdoNet.D365S.C1D365SCommand" class="text-break">C1D365SCommand Class
</h1>
  <div class="markdown level0 summary"><pre><code>&lt;xref href=&quot;C1.AdoNet.D365S.C1D365SCommand&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; contains all the necessary information to 
</code></pre>
<p>fully specify a Dynamics365Sales command and execute it.</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.DataConnector.AdoNet.DbCommandWrap-3.html">DbCommandWrap</a>&lt;<a class="xref" href="../C1.AdoNet.OData/C1.AdoNet.OData.C1ODataConnection.html">C1ODataConnection</a>, <a class="xref" href="../C1.AdoNet.OData/C1.AdoNet.OData.C1ODataCommand.html">C1ODataCommand</a>, <a class="xref" href="../C1.DataConnector/C1.DataConnector.C1DbParameter.html">C1DbParameter</a>&gt;</div>
    <div class="level5"><span class="xref">C1D365SCommand</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.D365S.html">C1.AdoNet.D365S</a></h6>
  <h6><strong>Assembly</strong>: C1.AdoNet.D365S.dll</h6>
  <h5 id="C1_AdoNet_D365S_C1D365SCommand_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class C1D365SCommand : DbCommandWrap&lt;C1ODataConnection, C1ODataCommand, C1DbParameter&gt;, IComponent, IDbCommand, IDisposable, IAsyncDisposable, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class C1D365SCommand
    Inherits DbCommandWrap(Of C1ODataConnection, C1ODataCommand, C1DbParameter)
    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_D365S_C1D365SCommand__ctor" data-uid="C1.AdoNet.D365S.C1D365SCommand.#ctor">
          <a class="xref" href="C1.AdoNet.D365S.C1D365SCommand.-ctor.html#C1_AdoNet_D365S_C1D365SCommand__ctor">C1D365SCommand()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of a db command, executable over a <a class="xref" href="C1.AdoNet.D365S.C1D365SConnection.html">C1D365SConnection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_D365S_C1D365SCommand__ctor_C1_AdoNet_D365S_C1D365SConnection_" data-uid="C1.AdoNet.D365S.C1D365SCommand.#ctor(C1.AdoNet.D365S.C1D365SConnection)">
          <a class="xref" href="C1.AdoNet.D365S.C1D365SCommand.-ctor.html#C1_AdoNet_D365S_C1D365SCommand__ctor_C1_AdoNet_D365S_C1D365SConnection_">C1D365SCommand(C1D365SConnection)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of a db command, specifying a D365S connection to be executed over</p>
</td>
      </tr>
      <tr>
        <td id="C1_AdoNet_D365S_C1D365SCommand__ctor_C1_AdoNet_D365S_C1D365SConnection_System_String_" data-uid="C1.AdoNet.D365S.C1D365SCommand.#ctor(C1.AdoNet.D365S.C1D365SConnection,System.String)">
          <a class="xref" href="C1.AdoNet.D365S.C1D365SCommand.-ctor.html#C1_AdoNet_D365S_C1D365SCommand__ctor_C1_AdoNet_D365S_C1D365SConnection_System_String_">C1D365SCommand(C1D365SConnection, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a db command from a specific text, specifying a <a class="xref" href="C1.AdoNet.D365S.C1D365SConnection.html">C1D365SConnection</a> to be executed over</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_D365S_C1D365SCommand_CreateInnerCommand_C1_AdoNet_OData_C1ODataConnection_" data-uid="C1.AdoNet.D365S.C1D365SCommand.CreateInnerCommand(C1.AdoNet.OData.C1ODataConnection)">
          <a class="xref" href="C1.AdoNet.D365S.C1D365SCommand.CreateInnerCommand.html#C1_AdoNet_D365S_C1D365SCommand_CreateInnerCommand_C1_AdoNet_OData_C1ODataConnection_">CreateInnerCommand(C1ODataConnection)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates and returns an inner command for the passed connection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
