C# Class ITimeU.Library.FriResImporter

Imports data from an Access database file from the FriRes system.
显示文件 Open project: heinek/ITimeU Class Usage Examples

Public Methods

Method Description
FriResImporter ( string accessDatabaseFile ) : System
SaveAthletesToDatabase ( List athletes ) : void
getAthletes ( ) : List

Reads all athletes from the database.

Private Methods

Method Description
connectToDb ( ) : System.Data.OleDb.OleDbConnection
createAthleteFrom ( DataRow row ) : AthleteModel
doGetAthletes ( ) : List
fetchAthletes ( OleDbDataAdapter adapter ) : List
fetchAthletesFrom ( DataTable table ) : List
fetchTableFrom ( OleDbDataAdapter adapter ) : DataTable
getIntFrom ( DataRow row, string rowIndex ) : int?
getStringFrom ( DataRow row, string rowIndex ) : string
rowHasIndex ( DataRow row, string rowIndex ) : bool
selectAllAthletes ( ) : OleDbDataAdapter

Method Details

FriResImporter() public method

public FriResImporter ( string accessDatabaseFile ) : System
accessDatabaseFile string
return System

SaveAthletesToDatabase() public static method

public static SaveAthletesToDatabase ( List athletes ) : void
athletes List
return void

getAthletes() public method

Reads all athletes from the database.
public getAthletes ( ) : List
return List