# C1.DataEngine.Workspace.table

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataEngine_Workspace_table_" data-uid="C1.DataEngine.Workspace.table*">table Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataEngine_Workspace_table_" data-uid="C1.DataEngine.Workspace.table*"></a>
<h4 id="C1_DataEngine_Workspace_table_System_String_" data-uid="C1.DataEngine.Workspace.table(System.String)">table(string)</h4>
<div class="markdown level1 summary"><p>Gets a base table by its name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ExpandoObject table(string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function table(name As String) As ExpandoObject</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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The name of the base table</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="https://learn.microsoft.com/dotnet/api/system.dynamic.expandoobject">ExpandoObject</a></td>
      <td><p>Dynamic object representing the base table.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_DataEngine_Workspace_table_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The dynamic object is used in queries over this table, for example,</p>
<pre><code class="lang-csharp">dynamic od = workspace.table("OderDetails");
dynamic query1 = workspace.query(new 
{
    price = Op.Mul(od.UnitPrice, od.Discount)
});</code></pre>
<p>Also, it has a Table property that returns the <a class="xref" href="C1.DataEngine.BaseTable.html">BaseTable</a> object representing this base table:</p>
<pre><code class="lang-csharp">BaseTable t = workspace.table("t1").Table;</code></pre>
</div>
</div>
