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); }
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); }
public ScoreRepository(LGAContext context) : base(context) { }
public LocationRepository(LGAContext context) : base(context) { }
public StatesController(LGAContext context) { _context = context; }
public ScoreService(LGAContext context) { _context = context; _stateService = new StateService(context); }
public BaseRepository(LGAContext context) { _context = context; }
public StateService(LGAContext context) { _context = context; }
public LocationsController(LGAContext context) { _context = context; }
public StateRepository(LGAContext context) : base(context) { }