C# Class UserInterface_Mockup_ICT4Reals.DataBase.PAdatabase

Inheritance: Database
Afficher le fichier Open project: marouanopen/ICT4Reals Class Usage Examples

Méthodes publiques

Méthode Description
GetAllServices ( ) : object>>.List

gets all services from the database

GetRailInfo ( int RailId ) : object>>.List

returns the info of a single rail

GetTramInfo ( int TramId ) : object>>.List
MakeService ( int tramid, string kind ) : bool

creates a new service in the database (not a instance of service)

RefreshTramdatabase ( int tramnr ) : bool

updates the trampart of the database (tram, tram_status, and rail)

Method Details

GetAllServices() public méthode

gets all services from the database
public GetAllServices ( ) : object>>.List
Résultat object>>.List

GetRailInfo() public méthode

returns the info of a single rail
public GetRailInfo ( int RailId ) : object>>.List
RailId int give the id of the rail
Résultat object>>.List

GetTramInfo() public méthode

public GetTramInfo ( int TramId ) : object>>.List
TramId int
Résultat object>>.List

MakeService() public méthode

creates a new service in the database (not a instance of service)
public MakeService ( int tramid, string kind ) : bool
tramid int id of the tram that has the service registered to it
kind string the kind of service ()
Résultat bool

RefreshTramdatabase() public méthode

updates the trampart of the database (tram, tram_status, and rail)
public RefreshTramdatabase ( int tramnr ) : bool
tramnr int the id of the tram that should be updated
Résultat bool