Click or drag to resize

DataAccessCreateDataTableFromDataReaderSchema Method

Creates a DataTable from the schema of a DataReader

Namespace:  WorkflowGen.My.Data
Assembly:  WorkflowGen.My (in WorkflowGen.My.dll) Version: 4.7.2.0 (4.7.2.0)
Syntax
public DataTable CreateDataTableFromDataReaderSchema(
	DbDataReader dataReader,
	string tableName
)

Parameters

dataReader
Type: System.Data.CommonDbDataReader
A DataReader to clone the DataTable schema from
tableName
Type: SystemString
An identifier for the created table

Return Value

Type: DataTable
A DataTable which schema has be been cloned from a given DataReader
See Also