C# Класс UserInterface_Mockup_ICT4Reals.DataBase.PAdatabase

Наследование: Database
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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)

Описание методов

GetAllServices() публичный Метод

gets all services from the database
public GetAllServices ( ) : object>>.List
Результат object>>.List

GetRailInfo() публичный Метод

returns the info of a single rail
public GetRailInfo ( int RailId ) : object>>.List
RailId int give the id of the rail
Результат object>>.List

GetTramInfo() публичный Метод

public GetTramInfo ( int TramId ) : object>>.List
TramId int
Результат object>>.List

MakeService() публичный Метод

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 ()
Результат bool

RefreshTramdatabase() публичный Метод

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
Результат bool