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.143 -- Release Build+e39ee60a4b307fea0c37636ce689adb1b037d737
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