C# Class DriverManager.DataProviders.DriverDataProvider

Data Provider to provide a simple set of Drivers. Acting as a Database to allow the user to add/remove/update Drivers.
Inheritance: IDriverDataProvider
Afficher le fichier Open project: smclark/DriverManager

Méthodes publiques

Méthode Description
Delete ( IDriver driver ) : OpResult

Deletes the specified driver.

DriverDataProvider ( ) : System
GetAll ( ) : IList

Retrieve all the Drivers.

GetById ( int id ) : IDriver

Gets a Driver by the ID.

GetByName ( string driverName ) : IDriver

Gets a Driver by their FullName property.

Save ( IDriver driver ) : OpResult

Saves a New Driver to the "DB".

Update ( IDriver driver ) : OpResult

Updates the an existing Driver.

Method Details

Delete() public méthode

Deletes the specified driver.
NULL Driver passed into method
public Delete ( IDriver driver ) : OpResult
driver IDriver The driver
Résultat OpResult

DriverDataProvider() public méthode

public DriverDataProvider ( ) : System
Résultat System

GetAll() public méthode

Retrieve all the Drivers.
public GetAll ( ) : IList
Résultat IList

GetById() public méthode

Gets a Driver by the ID.
public GetById ( int id ) : IDriver
id int The ID associated with the Driver.
Résultat IDriver

GetByName() public méthode

Gets a Driver by their FullName property.
public GetByName ( string driverName ) : IDriver
driverName string The FullName associated with the Driver.
Résultat IDriver

Save() public méthode

Saves a New Driver to the "DB".
public Save ( IDriver driver ) : OpResult
driver IDriver The new Driver.
Résultat OpResult

Update() public méthode

Updates the an existing Driver.
public Update ( IDriver driver ) : OpResult
driver IDriver The updated Driver.
Résultat OpResult