# C1.DataConnector.SourceTable

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_DataConnector_SourceTable" data-uid="C1.DataConnector.SourceTable" class="text-break">SourceTable Class
</h1>
  <div class="markdown level0 summary"><p>SourceTable represents a table containing rows of data.</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"><span class="xref">SourceTable</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.DataConnector.html">C1.DataConnector</a></h6>
  <h6><strong>Assembly</strong>: C1.DataConnector.dll</h6>
  <h5 id="C1_DataConnector_SourceTable_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SourceTable : IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class SourceTable
    Implements IDisposable</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_DataConnector_SourceTable__ctor_System_Boolean_" data-uid="C1.DataConnector.SourceTable.#ctor(System.Boolean)">
          <a class="xref" href="C1.DataConnector.SourceTable.-ctor.html#C1_DataConnector_SourceTable__ctor_System_Boolean_">SourceTable(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>The constructor of a SourceTable.</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_DataConnector_SourceTable_Columns" data-uid="C1.DataConnector.SourceTable.Columns">
          <a class="xref" href="C1.DataConnector.SourceTable.Columns.html#C1_DataConnector_SourceTable_Columns">Columns</a>
        </td>
        <td class="markdown level1 summary"><p>An IEnumerable containing tuples representing the column name and the data type of each column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_SourceTable_FieldCount" data-uid="C1.DataConnector.SourceTable.FieldCount">
          <a class="xref" href="C1.DataConnector.SourceTable.FieldCount.html#C1_DataConnector_SourceTable_FieldCount">FieldCount</a>
        </td>
        <td class="markdown level1 summary"><p>The number of fields (Columns) of the current row.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_SourceTable_OneTimeLoad" data-uid="C1.DataConnector.SourceTable.OneTimeLoad">
          <a class="xref" href="C1.DataConnector.SourceTable.OneTimeLoad.html#C1_DataConnector_SourceTable_OneTimeLoad">OneTimeLoad</a>
        </td>
        <td class="markdown level1 summary"><p>If this property is set to true than the rows are lazily loaded from the received DbDataReader. Otherwise all rows are loaded at once.
This may affect the performance of the application.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_SourceTable_Rows" data-uid="C1.DataConnector.SourceTable.Rows">
          <a class="xref" href="C1.DataConnector.SourceTable.Rows.html#C1_DataConnector_SourceTable_Rows">Rows</a>
        </td>
        <td class="markdown level1 summary"><p>An IEnumerable containing the rows of the SourceTable.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_SourceTable_TableName" data-uid="C1.DataConnector.SourceTable.TableName">
          <a class="xref" href="C1.DataConnector.SourceTable.TableName.html#C1_DataConnector_SourceTable_TableName">TableName</a>
        </td>
        <td class="markdown level1 summary"><p>The name of the table.</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_DataConnector_SourceTable_Dispose" data-uid="C1.DataConnector.SourceTable.Dispose">
          <a class="xref" href="C1.DataConnector.SourceTable.Dispose.html#C1_DataConnector_SourceTable_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>The dispose method of C1.DataConnector.SourceTable</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_SourceTable_InitiateFromReader_System_Data_Common_DbDataReader_System_String_System_Action_System_Type___" data-uid="C1.DataConnector.SourceTable.InitiateFromReader(System.Data.Common.DbDataReader,System.String,System.Action,System.Type[])">
          <a class="xref" href="C1.DataConnector.SourceTable.InitiateFromReader.html#C1_DataConnector_SourceTable_InitiateFromReader_System_Data_Common_DbDataReader_System_String_System_Action_System_Type___">InitiateFromReader(DbDataReader, string, Action, Type[])</a>
        </td>
        <td class="markdown level1 summary"><p>Create a <a class="xref" href="C1.DataConnector.SourceTable.html">SourceTable</a> from a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbdatareader">DbDataReader</a>. Datarows will be lazy-loaded when iterating <a class="xref" href="C1.DataConnector.SourceTable.Rows.html#C1_DataConnector_SourceTable_Rows">Rows</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataConnector_SourceTable_LoadFromReader_System_Data_Common_DbDataReader_System_String_System_Action_System_Type___" data-uid="C1.DataConnector.SourceTable.LoadFromReader(System.Data.Common.DbDataReader,System.String,System.Action,System.Type[])">
          <a class="xref" href="C1.DataConnector.SourceTable.LoadFromReader.html#C1_DataConnector_SourceTable_LoadFromReader_System_Data_Common_DbDataReader_System_String_System_Action_System_Type___">LoadFromReader(DbDataReader, string, Action, Type[])</a>
        </td>
        <td class="markdown level1 summary"><p>Create a <a class="xref" href="C1.DataConnector.SourceTable.html">SourceTable</a> from a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbdatareader">DbDataReader</a>. All datarows will be loaded into memory.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
