DataAccessCreateDataTableFromDataReaderSchema Method |
Creates a DataTable from the schema of a DataReader
Namespace:
WorkflowGen.My.Data
Assembly:
WorkflowGen.My (in WorkflowGen.My.dll) Version: 9.0.3.0 (9.0.3.20240719)
Syntax public DataTable CreateDataTableFromDataReaderSchema(
DbDataReader dataReader,
string tableName
)
Public Function CreateDataTableFromDataReaderSchema (
dataReader As DbDataReader,
tableName As String
) As DataTable
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:
DataTableA DataTable which schema has be been cloned from a given DataReader
See Also