Reads the specified columns from a data reader and returns them
as a data frame.
Namespace:
Extreme.Data
Assembly:
Extreme.Data (in Extreme.Data.dll) Version: 3.1.0
public static DataFrame<long, string> ReadDataFrame(
this IDataReader reader,
IEnumerable<string> columnKeys,
int capacity = 1000
)
<ExtensionAttribute>
Public Shared Function ReadDataFrame (
reader As IDataReader,
columnKeys As IEnumerable(Of String),
Optional capacity As Integer = 1000
) As DataFrame(Of Long, String)
public:
[ExtensionAttribute]
static DataFrame<long long, String^>^ ReadDataFrame(
IDataReader^ reader,
IEnumerable<String^>^ columnKeys,
int capacity = 1000
)
[<ExtensionAttribute>]
static member ReadDataFrame :
reader : IDataReader *
columnKeys : IEnumerable<string> *
?capacity : int
(* Defaults:
let _capacity = defaultArg capacity 1000
*)
-> DataFrame<int64, string>
Parameters
- reader
- Type: System.DataIDataReader
An IDataReader. - columnKeys
- Type: System.Collections.GenericIEnumerableString
A sequence of column names. - capacity (Optional)
- Type: SystemInt32
The initial capacity for the data frame.
Return Value
Type:
DataFrameInt64,
StringThe data frame read from
reader.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDataReader. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Optimal performance is achieved when capacity
is equal to the number of rows in the data frame.
Reference