# C1.C1Preview.DataBinding.C1DataSchema

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_DataBinding_C1DataSchema" data-uid="C1.C1Preview.DataBinding.C1DataSchema" class="text-break">C1DataSchema Class
</h1>
  <div class="markdown level0 summary"><p>Represents a data schema of a <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</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"><span class="xref">C1DataSchema</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.DataBinding.html">C1.C1Preview.DataBinding</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_DataBinding_C1DataSchema_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[C1ClassSerialization(true)]
public class C1DataSchema</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;C1ClassSerialization(True)&gt;
Public Class C1DataSchema</code></pre>
  </div>
  <h5 id="C1_C1Preview_DataBinding_C1DataSchema_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This class contains:</p>
<ul><li>The list of data sources associated with the document </li><li><span class="term"><a class="xref" href="C1.C1Preview.DataBinding.C1DataSchema.DataSources.html#C1_C1Preview_DataBinding_C1DataSchema_DataSources">DataSources</a></span>The collection of data sources associated with the current document.
Each element in that collection determines how to connect to an external data source (connection string etc.).</li><li><span class="term"><a class="xref" href="C1.C1Preview.DataBinding.C1DataSchema.DataSets.html#C1_C1Preview_DataBinding_C1DataSchema_DataSets">DataSets</a></span>The collection of available data sets (tables, SQL queries).</li><li><span class="term"><a class="xref" href="C1.C1Preview.DataBinding.C1DataSchema.Aggregates.html#C1_C1Preview_DataBinding_C1DataSchema_Aggregates">Aggregates</a></span>The collection of aggregates defined on the data.</li></ul>
</div>
  <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_C1Preview_DataBinding_C1DataSchema_Aggregates" data-uid="C1.C1Preview.DataBinding.C1DataSchema.Aggregates">
          <a class="xref" href="C1.C1Preview.DataBinding.C1DataSchema.Aggregates.html#C1_C1Preview_DataBinding_C1DataSchema_Aggregates">Aggregates</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of named <a class="xref" href="C1.C1Preview.DataBinding.Aggregate.html">Aggregate</a> objects
defined on the current data schema.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DataBinding_C1DataSchema_DataSets" data-uid="C1.C1Preview.DataBinding.C1DataSchema.DataSets">
          <a class="xref" href="C1.C1Preview.DataBinding.C1DataSchema.DataSets.html#C1_C1Preview_DataBinding_C1DataSchema_DataSets">DataSets</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of data sets provided by the current data schema.</p>
<p>
A <a class="xref" href="C1.C1Preview.DataBinding.DataSet.html">DataSet</a> from this collection
can be assigned to the <a class="xref" href="C1.C1Preview.DataBinding.C1DataBinding.DataSource.html#C1_C1Preview_DataBinding_C1DataBinding_DataSource">DataSource</a> property
on <a class="xref" href="C1.C1Preview.RenderObject.DataBinding.html#C1_C1Preview_RenderObject_DataBinding">DataBinding</a> of a <a class="xref" href="C1.C1Preview.RenderObject.html">RenderObject</a>,
or on <a class="xref" href="C1.C1Preview.TableVectorGroup.DataBinding.html#C1_C1Preview_TableVectorGroup_DataBinding">DataBinding</a> of a table row or column group (<a class="xref" href="C1.C1Preview.TableVector.html">TableVector</a>).
</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DataBinding_C1DataSchema_DataSources" data-uid="C1.C1Preview.DataBinding.C1DataSchema.DataSources">
          <a class="xref" href="C1.C1Preview.DataBinding.C1DataSchema.DataSources.html#C1_C1Preview_DataBinding_C1DataSchema_DataSources">DataSources</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of <a class="xref" href="C1.C1Preview.DataBinding.DataSource.html">DataSource</a> objects
associated with the current data schema.
Those data sources are used to provide data for elements of the <a class="xref" href="C1.C1Preview.DataBinding.C1DataSchema.DataSets.html#C1_C1Preview_DataBinding_C1DataSchema_DataSets">DataSets</a>
collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_DataBinding_C1DataSchema_Owner" data-uid="C1.C1Preview.DataBinding.C1DataSchema.Owner">
          <a class="xref" href="C1.C1Preview.DataBinding.C1DataSchema.Owner.html#C1_C1Preview_DataBinding_C1DataSchema_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a> containing the current data schema.</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_C1Preview_DataBinding_C1DataSchema_Clear" data-uid="C1.C1Preview.DataBinding.C1DataSchema.Clear">
          <a class="xref" href="C1.C1Preview.DataBinding.C1DataSchema.Clear.html#C1_C1Preview_DataBinding_C1DataSchema_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the current data schema, deletes all
associated data sets, data sources and aggregates.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
