MyMediaLite  3.11
Static Public Member Functions | List of all members
DataReaderExtensions Class Reference

Extension methods for IDataReader objects More...

Static Public Member Functions

static Func< float > GetFloatGetter (this IDataReader reader, int i)
 Get a getter function for ratings from an IDataReader More...
 
static Func< string > GetStringGetter (this IDataReader reader, int i)
 Get a getter function for (usually user or item) IDs from an IDataReader More...
 

Detailed Description

Extension methods for IDataReader objects

Member Function Documentation

static Func<float> GetFloatGetter ( this IDataReader  reader,
int  i 
)
inlinestatic

Get a getter function for ratings from an IDataReader

Returns
a function returning a float
Parameters
readerthe reader object
iindex of the field to access
Exceptions
FormatExceptionthrown if field i is not of type Float, Double, Int32, or Int64
static Func<string> GetStringGetter ( this IDataReader  reader,
int  i 
)
inlinestatic

Get a getter function for (usually user or item) IDs from an IDataReader

Returns
a function returning a string
Parameters
readerthe reader object
iindex of the field to access
Exceptions
FormatExceptionthrown if field i is not of type String, Int32, or Int64

The documentation for this class was generated from the following file: