Пример #1
0
 public void MergeContext(LGAContext context, SeedingContext seedingContext)
 {
     context.Locations.AddRange(seedingContext.Locations);
     context.States.AddRange(seedingContext.States);
     context.Scores.AddRange(seedingContext.Scores);
     context.ScoreDetails.AddRange(seedingContext.ScoreDetails);
 }
Пример #2
0
 public ReportService(LGAContext context)
 {
     _context = context;
     //Report Service is acting like a logic layer to combine data contexts and present the desired output,
     //hence added concrete coupling to ScoreService.
     _scoreService = new ScoreService(context);
     _stateService = new StateService(context);
 }
Пример #3
0
 public ScoreRepository(LGAContext context) : base(context)
 {
 }
Пример #4
0
 public LocationRepository(LGAContext context) : base(context)
 {
 }
Пример #5
0
 public StatesController(LGAContext context)
 {
     _context = context;
 }
Пример #6
0
 public ScoreService(LGAContext context)
 {
     _context      = context;
     _stateService = new StateService(context);
 }
Пример #7
0
 public BaseRepository(LGAContext context)
 {
     _context = context;
 }
Пример #8
0
 public StateService(LGAContext context)
 {
     _context = context;
 }
Пример #9
0
 public LocationsController(LGAContext context)
 {
     _context = context;
 }
Пример #10
0
 public StateRepository(LGAContext context) : base(context)
 {
 }