Skip to main content

DataTableRecordSet

Version: 7.0

cete.dynamicpdf.reportwriter.data.datatablerecordset

DataTableRecordSet​

Represents a recordset based off of a datatable

public class DataTableRecordSet : RecordSet
Public Class DataTableRecordSet
Inherits RecordSet

Inheritance: Object → RecordSet → DataTableRecordSet

Licensing​

This class is a DynamicPDF ReportWriter Professional Edition feature. One of the following licenses is required for non-evaluation usage:

  • DynamicPDF ReportWriter for .NET Professional Edition
  • DynamicPDF ReportWriter for .NET Enterprise Edition
  • DynamicPDF Core Suite for .NET Professional Edition
  • DynamicPDF Core Suite for .NET Enterprise Edition

Constructors​

DataTableRecordSet(DataTable)​

Initializes a new instance of the DataTableRecordSet class.

public DataTableRecordSet(DataTable dataTable)
Public Sub New (dataTable As DataTable)

Parameters​

The datatable for the record set.

DataTableRecordSet(IDbConnection, DataTable)​

Initializes a new instance of the DataTableRecordSet class.

public DataTableRecordSet(IDbConnection connection, DataTable dataTable)
Public Sub New (connection As IDbConnection, dataTable As DataTable)

Parameters​

Database connection used to create the datatable.

The datatable for the record set.

Properties​

Connection​

Gets the database connection of the DataTableRecordSet .

public IDbConnection Connection { get; }
Public Property Connection As IDbConnection

Property Value​

IDbConnection

HasData​

Gets a value indicating whether the DataTableRecordSet contains data.

public bool HasData { get; }
Public Property HasData As Boolean

Property Value​

Boolean

Id​

Gets the ID for the query. (Inherited from RecordSet)

public string Id { get; }
Public Property Id As String

Property Value​

String

Item[Int32]​

Gets the Object with the given field number.

public Object this[int fieldIndex] { get; }
Public Property Item(fieldIndex As Integer) As Object

Property Value​

Object

Item[String]​

Gets the Object with the given name.

public Object this[string fieldName] { get; }
Public Property Item(fieldName As String) As Object

Property Value​

Object

Query​

Gets the Query for the RecordSet . (Inherited from RecordSet)

public Query Query { get; }
Public Property Query As Query

Property Value​

Query

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

See Also​

ceTe.DynamicPDF.ReportWriter.Data