DataReaderExtensions Class Reference

Extension methods for IDataReader objects. More...

List of all members.

Static Public Member Functions

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

Detailed Description

Extension methods for IDataReader objects.


Member Function Documentation

static Func<float> GetFloatGetter ( this IDataReader  reader,
int  i 
) [inline, static]

Get a getter function for ratings from an IDataReader.

Returns:
a function returning a float
Parameters:
reader the reader object
i index of the field to access
Exceptions:
FormatException thrown if field i is not of type Float, Double, Int32, or Int64
static Func<string> GetStringGetter ( this IDataReader  reader,
int  i 
) [inline, static]

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

Returns:
a function returning a string
Parameters:
reader the reader object
i index of the field to access
Exceptions:
FormatException thrown if field i is not of type String, Int32, or Int64

The documentation for this class was generated from the following file:
Generated on Thu Apr 5 01:11:32 2012 for MyMediaLite by  doxygen 1.6.3