Reads a data frame from a data reader.
Namespace:
Extreme.Data
Assembly:
Extreme.Data (in Extreme.Data.dll) Version: 3.1.0
public static DataFrame<long, string> ReadDataFrame(
this IDataReader reader,
int capacity = 1000
)
<ExtensionAttribute>
Public Shared Function ReadDataFrame (
reader As IDataReader,
Optional capacity As Integer = 1000
) As DataFrame(Of Long, String)
public:
[ExtensionAttribute]
static DataFrame<long long, String^>^ ReadDataFrame(
IDataReader^ reader,
int capacity = 1000
)
[<ExtensionAttribute>]
static member ReadDataFrame :
reader : IDataReader *
?capacity : int
(* Defaults:
let _capacity = defaultArg capacity 1000
*)
-> DataFrame<int64, string>
Parameters
- reader
- Type: System.DataIDataReader
An IDataReader. - capacity (Optional)
- Type: SystemInt32
Optional. 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