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.163 -- Release Build+b7c062313779c243eb4689aaf08bfd5bae61c6da
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