# GrapeCity.ActiveReports.Extensibility.Data.SchemaModel.ForeignKey.-ctor

## Content

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



<h1 id="GrapeCity_ActiveReports_Extensibility_Data_SchemaModel_ForeignKey__ctor_" data-uid="GrapeCity.ActiveReports.Extensibility.Data.SchemaModel.ForeignKey.#ctor*">ForeignKey Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Extensibility_Data_SchemaModel_ForeignKey__ctor_" data-uid="GrapeCity.ActiveReports.Extensibility.Data.SchemaModel.ForeignKey.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Extensibility_Data_SchemaModel_ForeignKey__ctor_GrapeCity_ActiveReports_Extensibility_Data_SchemaModel_Table_GrapeCity_ActiveReports_Extensibility_Data_SchemaModel_Table_System_Collections_Generic_IEnumerable_GrapeCity_ActiveReports_Extensibility_Data_SchemaModel_Column__System_Collections_Generic_IEnumerable_GrapeCity_ActiveReports_Extensibility_Data_SchemaModel_Column__" data-uid="GrapeCity.ActiveReports.Extensibility.Data.SchemaModel.ForeignKey.#ctor(GrapeCity.ActiveReports.Extensibility.Data.SchemaModel.Table,GrapeCity.ActiveReports.Extensibility.Data.SchemaModel.Table,System.Collections.Generic.IEnumerable{GrapeCity.ActiveReports.Extensibility.Data.SchemaModel.Column},System.Collections.Generic.IEnumerable{GrapeCity.ActiveReports.Extensibility.Data.SchemaModel.Column})">ForeignKey(Table, Table, IEnumerable&lt;Column&gt;, IEnumerable&lt;Column&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Extensibility.Data.SchemaModel.ForeignKey.html">ForeignKey</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ForeignKey(Table source, Table destination, IEnumerable&lt;Column&gt; sourceColumns, IEnumerable&lt;Column&gt; destinationColumns)</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="GrapeCity.ActiveReports.Extensibility.Data.SchemaModel.Table.html">Table</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>The source table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Extensibility.Data.SchemaModel.Table.html">Table</a></td>
      <td><span class="parametername">destination</span></td>
      <td><p>The destination table.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Extensibility.Data.SchemaModel.Column.html">Column</a>&gt;</td>
      <td><span class="parametername">sourceColumns</span></td>
      <td><p>The columns that defines a source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.Extensibility.Data.SchemaModel.Column.html">Column</a>&gt;</td>
      <td><span class="parametername">destinationColumns</span></td>
      <td><p>The columnts that defines a destination.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
