C# Class TrainNotifier.Service.TiplocRepository

Inheritance: DbRepository
ファイルを表示 Open project: blueghostuk/trainnotifier-server Class Usage Examples

Public Methods

Method Description
Get ( ) : IEnumerable
GetAllByCRSCode ( string crsCode ) : IEnumerable
GetAllByStanox ( string stanox ) : IEnumerable

There can be more than one location per stanox

GetByLocation ( double lat, double lon, int limit ) : IEnumerable
GetByStationName ( string stationName ) : StationTiploc
GetTiplocByStanox ( string stanox ) : TiplocCode
GetTiplocs ( ) : IEnumerable
GetTiplocsByStanox ( string stanox ) : IEnumerable
InsertTiploc ( string tiploc ) : short
InsertTiploc ( TiplocCode tiploc ) : void
PreloadCache ( ) : void

Private Methods

Method Description
AddToCache ( string stanox, IEnumerable tiplocs ) : void
GetByCRSCode ( string crsCode ) : StationTiploc
GetByStanox ( string stanox ) : StationTiploc

Method Details

Get() public method

public Get ( ) : IEnumerable
return IEnumerable

GetAllByCRSCode() public method

public GetAllByCRSCode ( string crsCode ) : IEnumerable
crsCode string
return IEnumerable

GetAllByStanox() public method

There can be more than one location per stanox
public GetAllByStanox ( string stanox ) : IEnumerable
stanox string
return IEnumerable

GetByLocation() public method

public GetByLocation ( double lat, double lon, int limit ) : IEnumerable
lat double
lon double
limit int
return IEnumerable

GetByStationName() public method

public GetByStationName ( string stationName ) : StationTiploc
stationName string
return StationTiploc

GetTiplocByStanox() public method

public GetTiplocByStanox ( string stanox ) : TiplocCode
stanox string
return TiplocCode

GetTiplocs() public method

public GetTiplocs ( ) : IEnumerable
return IEnumerable

GetTiplocsByStanox() public method

public GetTiplocsByStanox ( string stanox ) : IEnumerable
stanox string
return IEnumerable

InsertTiploc() public method

public InsertTiploc ( string tiploc ) : short
tiploc string
return short

InsertTiploc() public method

public InsertTiploc ( TiplocCode tiploc ) : void
tiploc TiplocCode
return void

PreloadCache() public method

public PreloadCache ( ) : void
return void