# C1.DataCollection.AdoNet.C1AdoNetVirtualDataCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_DataCollection_AdoNet_C1AdoNetVirtualDataCollection" data-uid="C1.DataCollection.AdoNet.C1AdoNetVirtualDataCollection" class="text-break">C1AdoNetVirtualDataCollection Class
</h1>
  <div class="markdown level0 summary"><p>Virtual collection whose data is extracted from a Ado.Net <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbconnection">DbConnection</a>.</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="../C1.DataCollection/C1.DataCollection.C1DataCollectionBase-1.html">C1DataCollectionBase</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</div>
    <div class="level2"><a class="xref" href="../C1.DataCollection/C1.DataCollection.C1VirtualDataCollection-1.html">C1VirtualDataCollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</div>
    <div class="level3"><a class="xref" href="C1.DataCollection.AdoNet.C1AdoNetVirtualDataCollection-1.html">C1AdoNetVirtualDataCollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</div>
    <div class="level4"><span class="xref">C1AdoNetVirtualDataCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="../C1.DataCollection/C1.DataCollection.IDataCollection-1.html">IDataCollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.specialized.inotifycollectionchanged">INotifyCollectionChanged</a></div>
    <div><a class="xref" href="../C1.DataCollection/C1.DataCollection.ISupportIndexing-1.html">ISupportIndexing</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="../C1.DataCollection/C1.DataCollection.ISupportVirtualization.html">ISupportVirtualization</a></div>
    <div><a class="xref" href="../C1.DataCollection/C1.DataCollection.ISupportRefreshing.html">ISupportRefreshing</a></div>
    <div><a class="xref" href="../C1.DataCollection/C1.DataCollection.ISupportConnection.html">ISupportConnection</a></div>
    <div><a class="xref" href="../C1.DataCollection/C1.DataCollection.ISupportAsyncLoading-1.html">ISupportAsyncLoading</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</div>
    <div><a class="xref" href="../C1.DataCollection/C1.DataCollection.ISupportSorting.html">ISupportSorting</a></div>
    <div><a class="xref" href="../C1.DataCollection/C1.DataCollection.ISupportFiltering.html">ISupportFiltering</a></div>
    <div><a class="xref" href="../C1.DataCollection/C1.DataCollection.ISupportEditing-1.html">ISupportEditing</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.DataCollection.AdoNet.html">C1.DataCollection.AdoNet</a></h6>
  <h6><strong>Assembly</strong>: C1.DataCollection.AdoNet.dll</h6>
  <h5 id="C1_DataCollection_AdoNet_C1AdoNetVirtualDataCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1AdoNetVirtualDataCollection : C1AdoNetVirtualDataCollection&lt;object&gt;, IDataCollection&lt;object?&gt;, IReadOnlyList&lt;object?&gt;, IReadOnlyCollection&lt;object?&gt;, IEnumerable&lt;object?&gt;, IEnumerable, INotifyCollectionChanged, ISupportIndexing&lt;object?&gt;, INotifyPropertyChanged, IDisposable, ISupportVirtualization, ISupportRefreshing, ISupportConnection, ISupportAsyncLoading&lt;object&gt;, ISupportSorting, ISupportFiltering, ISupportEditing&lt;object&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1AdoNetVirtualDataCollection
    Inherits C1AdoNetVirtualDataCollection(Of Object)
    Implements IDataCollection(Of Object), IReadOnlyList(Of Object), IReadOnlyCollection(Of Object), IEnumerable(Of Object), IEnumerable, INotifyCollectionChanged, ISupportIndexing(Of Object), INotifyPropertyChanged, IDisposable, ISupportVirtualization, ISupportRefreshing, ISupportConnection, ISupportAsyncLoading(Of Object), ISupportSorting, ISupportFiltering, ISupportEditing(Of Object)</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_DataCollection_AdoNet_C1AdoNetVirtualDataCollection__ctor_System_Data_Common_DbConnection_System_String_System_Collections_Generic_IEnumerable_System_String__System_Int32_System_Int32_System_Nullable_System_TimeSpan__" data-uid="C1.DataCollection.AdoNet.C1AdoNetVirtualDataCollection.#ctor(System.Data.Common.DbConnection,System.String,System.Collections.Generic.IEnumerable{System.String},System.Int32,System.Int32,System.Nullable{System.TimeSpan})">
          <a class="xref" href="C1.DataCollection.AdoNet.C1AdoNetVirtualDataCollection.-ctor.html#C1_DataCollection_AdoNet_C1AdoNetVirtualDataCollection__ctor_System_Data_Common_DbConnection_System_String_System_Collections_Generic_IEnumerable_System_String__System_Int32_System_Int32_System_Nullable_System_TimeSpan__">C1AdoNetVirtualDataCollection(DbConnection, string, IEnumerable&lt;string&gt;?, int, int, TimeSpan?)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.DataCollection.AdoNet.C1AdoNetVirtualDataCollection.html">C1AdoNetVirtualDataCollection</a> class.</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_DataCollection_AdoNet_C1AdoNetVirtualDataCollection_DetermineItemType_System_Data_Common_DbDataReader_" data-uid="C1.DataCollection.AdoNet.C1AdoNetVirtualDataCollection.DetermineItemType(System.Data.Common.DbDataReader)">
          <a class="xref" href="C1.DataCollection.AdoNet.C1AdoNetVirtualDataCollection.DetermineItemType.html#C1_DataCollection_AdoNet_C1AdoNetVirtualDataCollection_DetermineItemType_System_Data_Common_DbDataReader_">DetermineItemType(DbDataReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines the type of the items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_DataCollection_AdoNet_C1AdoNetVirtualDataCollection_GetItemType" data-uid="C1.DataCollection.AdoNet.C1AdoNetVirtualDataCollection.GetItemType">
          <a class="xref" href="C1.DataCollection.AdoNet.C1AdoNetVirtualDataCollection.GetItemType.html#C1_DataCollection_AdoNet_C1AdoNetVirtualDataCollection_GetItemType">GetItemType()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the type of the item.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
