# GrapeCity.ActiveReports.Core.Rendering.Data.IDbCommandParametersAdapter.SetParameters

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Core_Rendering_Data_IDbCommandParametersAdapter_SetParameters_" data-uid="GrapeCity.ActiveReports.Core.Rendering.Data.IDbCommandParametersAdapter.SetParameters*">SetParameters Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Core_Rendering_Data_IDbCommandParametersAdapter_SetParameters_" data-uid="GrapeCity.ActiveReports.Core.Rendering.Data.IDbCommandParametersAdapter.SetParameters*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Rendering_Data_IDbCommandParametersAdapter_SetParameters_System_Data_Common_DbCommand_System_Collections_Generic_IReadOnlyList_GrapeCity_ActiveReports_Core_Rendering_Data_CommandParameter__" data-uid="GrapeCity.ActiveReports.Core.Rendering.Data.IDbCommandParametersAdapter.SetParameters(System.Data.Common.DbCommand,System.Collections.Generic.IReadOnlyList{GrapeCity.ActiveReports.Core.Rendering.Data.CommandParameter})">SetParameters(DbCommand, IReadOnlyList&lt;CommandParameter&gt;)</h4>
<div class="markdown level1 summary"><p>Adds parameter values in to the command.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetParameters(DbCommand command, IReadOnlyList&lt;CommandParameter&gt; commandParameters)</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.data.common.dbcommand">DbCommand</a></td>
      <td><span class="parametername">command</span></td>
      <td><p>The database command to which the parameters will be added.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Core.Rendering.Data.CommandParameter.html">CommandParameter</a>&gt;</td>
      <td><span class="parametername">commandParameters</span></td>
      <td><p>The collection of parameters to add to the command.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
