コード例 #1
0
ファイル: PerronController.cs プロジェクト: wang900/S2_Trein
 public PerronController(IConfiguration configuration)
 {
     context          = new MSSQLPerronContext(configuration.GetConnectionString("DefaultConnection"));
     stationContext   = new MSSQLStationContext(configuration.GetConnectionString("DefaultConnection"));
     repo             = new PerronRepository(context);
     stationRepo      = new StationRepository(stationContext);
     converter        = new PerronViewModelConverter();
     stationConverter = new StationViewModelConverter();
 }
コード例 #2
0
 public PerronRepository(IPerronContext context)
 {
     Context = context;
 }