Gemstone Data Library
Show/Hide TOC

# TableOperations T ToDataTable Method

Converts the given collection of records into a DataTable.

## Definition

Namespace: Gemstone.Data.Model
Assembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.173 -- Release Build+474588f786435fdbe229c98c8ae1a9379898a9e0
C#
View Source Request Example

    public DataTable ToDataTable(
    	IEnumerable<T> records
    )

VB
View Source Request Example

    Public Function ToDataTable (
    	records As IEnumerable(Of T)
    ) As DataTable

C++
View Source Request Example

    public:
    DataTable^ ToDataTable(
    	IEnumerable<T>^ records
    )

JavaScript
View Source Request Example

    function ToDataTable(records);

#### Parameters

records IEnumerable T
  The collection of records to be inserted into the data table.

#### Return Value

DataTable
A data table containing data from the given records.

## See Also

#### Reference

TableOperationsT Class
Gemstone.Data.Model Namespace