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.180 -- Release Build+0e3c143567ac1e22ccabc137e6e7d5395a9784d8
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