# GrapeCity.ActiveReports.PageReportModel.DataSource

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_PageReportModel_DataSource" data-uid="GrapeCity.ActiveReports.PageReportModel.DataSource" class="text-break">DataSource Class
</h1>
  <div class="markdown level0 summary"><p>Represents information about a report data source, specifying its connection details.</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">DataSource</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IValidateable.html">IValidateable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.html">GrapeCity.ActiveReports.PageReportModel</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Rdl.dll</h6>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_DataSource_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DataSource : IValidateable</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_DataSource_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>A <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.DataSource.html">DataSource</a> must have only one <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.DataSource.DataSourceReference.html#GrapeCity_ActiveReports_PageReportModel_DataSource_DataSourceReference">DataSourceReference</a>
or one <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.ConnectionProperties.html">ConnectionProperties</a> object defined.</p>
</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="GrapeCity_ActiveReports_PageReportModel_DataSource__ctor" data-uid="GrapeCity.ActiveReports.PageReportModel.DataSource.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.DataSource.-ctor.html#GrapeCity_ActiveReports_PageReportModel_DataSource__ctor">DataSource()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.DataSource.html">DataSource</a> class.</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="GrapeCity_ActiveReports_PageReportModel_DataSource_ConnectionProperties" data-uid="GrapeCity.ActiveReports.PageReportModel.DataSource.ConnectionProperties">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.DataSource.ConnectionProperties.html#GrapeCity_ActiveReports_PageReportModel_DataSource_ConnectionProperties">ConnectionProperties</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the connection properties used to connect to the data source.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_DataSource_DataSourceReference" data-uid="GrapeCity.ActiveReports.PageReportModel.DataSource.DataSourceReference">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.DataSource.DataSourceReference.html#GrapeCity_ActiveReports_PageReportModel_DataSource_DataSourceReference">DataSourceReference</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a full or relative path to the reference of the data source.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_DataSource_Name" data-uid="GrapeCity.ActiveReports.PageReportModel.DataSource.Name">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.DataSource.Name.html#GrapeCity_ActiveReports_PageReportModel_DataSource_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a name of the data source.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_DataSource_Transaction" data-uid="GrapeCity.ActiveReports.PageReportModel.DataSource.Transaction">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.DataSource.Transaction.html#GrapeCity_ActiveReports_PageReportModel_DataSource_Transaction">Transaction</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the data source should execute its datasets within a single transaction.</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="GrapeCity_ActiveReports_PageReportModel_DataSource_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_" data-uid="GrapeCity.ActiveReports.PageReportModel.DataSource.Validate(GrapeCity.ActiveReports.PageReportModel.ValidationContext)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.DataSource.Validate.html#GrapeCity_ActiveReports_PageReportModel_DataSource_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_">Validate(ValidationContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates the current state of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.DataSource.html">DataSource</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange.html#GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange__2___0_System_Collections_Generic_IEnumerable___1__">CollectionExtensions.AddRange&lt;TCollection, TItem&gt;(TCollection, IEnumerable&lt;TItem&gt;)</a>
  </div>

</div>
