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: 8.3.3.0 (8.3.3.20240926)
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