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.152 -- Release Build+3b6829d9645b31d6fc0c4a03e68df9622cb42dfb
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