# C1.LiveLinq.AdoNet.AdoNetExtensions.AsLive

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_LiveLinq_AdoNet_AdoNetExtensions_AsLive_" data-uid="C1.LiveLinq.AdoNet.AdoNetExtensions.AsLive*">AsLive Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_LiveLinq_AdoNet_AdoNetExtensions_AsLive_" data-uid="C1.LiveLinq.AdoNet.AdoNetExtensions.AsLive*"></a>
<h4 id="C1_LiveLinq_AdoNet_AdoNetExtensions_AsLive_System_Data_DataTable_" data-uid="C1.LiveLinq.AdoNet.AdoNetExtensions.AsLive(System.Data.DataTable)">AsLive(DataTable)</h4>
<div class="markdown level1 summary"><p>Creates a view based on the specified ADO.NET <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datatable">DataTable</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static View&lt;DataRow&gt; AsLive(this DataTable table)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function AsLive(table As DataTable) As View(Of DataRow)</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.datatable">DataTable</a></td>
      <td><span class="parametername">table</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datatable">DataTable</a> to expose as a view.</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.LiveLinq.LiveViews.View-1.html">View</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datarow">DataRow</a>&gt;</td>
      <td><p>A view that contains the same elements as <i>table</i>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_LiveLinq_AdoNet_AdoNetExtensions_AsLive_" data-uid="C1.LiveLinq.AdoNet.AdoNetExtensions.AsLive*"></a>
<h4 id="C1_LiveLinq_AdoNet_AdoNetExtensions_AsLive__1_System_Data_DataTable_" data-uid="C1.LiveLinq.AdoNet.AdoNetExtensions.AsLive``1(System.Data.DataTable)">AsLive&lt;TRow&gt;(DataTable)</h4>
<div class="markdown level1 summary"><p>Creates a view based on the specified ADO.NET <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datatable">DataTable</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static View&lt;TRow&gt; AsLive&lt;TRow&gt;(this DataTable table) where TRow : DataRow</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function AsLive(Of TRow As DataRow)(table As DataTable) As View(Of TRow)</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.datatable">DataTable</a></td>
      <td><span class="parametername">table</span></td>
      <td><p>The typed data table to expose as a view.</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.LiveLinq.LiveViews.View-1.html">View</a>&lt;TRow&gt;</td>
      <td><p>A view that contains the same elements as <i>table</i>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">TRow</span></td>
      <td><p>The type of the rows in the <i>table</i>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_LiveLinq_AdoNet_AdoNetExtensions_AsLive_" data-uid="C1.LiveLinq.AdoNet.AdoNetExtensions.AsLive*"></a>
<h4 id="C1_LiveLinq_AdoNet_AdoNetExtensions_AsLive__1_System_Data_TypedTableBase___0__" data-uid="C1.LiveLinq.AdoNet.AdoNetExtensions.AsLive``1(System.Data.TypedTableBase{``0})">AsLive&lt;TRow&gt;(TypedTableBase&lt;TRow&gt;)</h4>
<div class="markdown level1 summary"><p>Creates a view based on the specified typed data table.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static View&lt;TRow&gt; AsLive&lt;TRow&gt;(this TypedTableBase&lt;TRow&gt; table) where TRow : DataRow</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function AsLive(Of TRow As DataRow)(table As TypedTableBase(Of TRow)) As View(Of TRow)</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.typedtablebase-1">TypedTableBase</a>&lt;TRow&gt;</td>
      <td><span class="parametername">table</span></td>
      <td><p>The typed data table to expose as a view.</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.LiveLinq.LiveViews.View-1.html">View</a>&lt;TRow&gt;</td>
      <td><p>A view that contains the same elements as <i>table</i>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">TRow</span></td>
      <td><p>The type of the rows in the <i>table</i>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
