# C1.DataConnector.C1DbParameterCollection.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataConnector_C1DbParameterCollection_Add_" data-uid="C1.DataConnector.C1DbParameterCollection.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataConnector_C1DbParameterCollection_Add_" data-uid="C1.DataConnector.C1DbParameterCollection.Add*"></a>
<h4 id="C1_DataConnector_C1DbParameterCollection_Add_System_Object_" data-uid="C1.DataConnector.C1DbParameterCollection.Add(System.Object)">Add(object)</h4>
<div class="markdown level1 summary"><p>Adds the specified DbParameter object to the parameter collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override int Add(object value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function Add(value As Object) As Integer</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The Value of the DbParameter to add to the collection.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The index of the DbParameter object in the collection.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbparametercollection.add">DbParameterCollection.Add(object)</a></div>


<a id="C1_DataConnector_C1DbParameterCollection_Add_" data-uid="C1.DataConnector.C1DbParameterCollection.Add*"></a>
<h4 id="C1_DataConnector_C1DbParameterCollection_Add_System_String_System_String_" data-uid="C1.DataConnector.C1DbParameterCollection.Add(System.String,System.String)">Add(string, string)</h4>
<div class="markdown level1 summary"><p>Adds a DbParameter object to the parameter collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1DbParameter Add(string name, string sourceColumn)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(name As String, sourceColumn As String) As C1DbParameter</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The name of the parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">sourceColumn</span></td>
      <td><p>The source column of the parameter to be mapped to.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.DataConnector.C1DbParameter.html">C1DbParameter</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_DataConnector_C1DbParameterCollection_Add_" data-uid="C1.DataConnector.C1DbParameterCollection.Add*"></a>
<h4 id="C1_DataConnector_C1DbParameterCollection_Add_System_String_System_Data_DbType_System_String_" data-uid="C1.DataConnector.C1DbParameterCollection.Add(System.String,System.Data.DbType,System.String)">Add(string, DbType, string)</h4>
<div class="markdown level1 summary"><p>Adds a DbParameter object to the parameter collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1DbParameter Add(string name, DbType dbType, string sourceColumn)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(name As String, dbType As DbType, sourceColumn As String) As C1DbParameter</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The name of the parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.dbtype">DbType</a></td>
      <td><span class="parametername">dbType</span></td>
      <td><p>The type of the parameter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">sourceColumn</span></td>
      <td><p>The source column of the parameter to be mapped to.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.DataConnector.C1DbParameter.html">C1DbParameter</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
