コード例 #1
0
 public ResultService(PowerLinesContext context, IResultReader resultReader, IRatingService ratingService, IBulkInsert <Result> bulkInsert)
 {
     db = context;
     this.resultReader  = resultReader;
     this.ratingService = ratingService;
     this.bulkInsert    = bulkInsert;
 }
コード例 #2
0
ファイル: Fixtures.cs プロジェクト: johnwatson484/power-lines
 public static void Update()
 {
     using (var db = new PowerLinesContext())
     {
         var fixtureService = new FixtureService(db, new FixtureReader());
         fixtureService.Upload();
     }
 }
コード例 #3
0
 public static void Update()
 {
     using (var db = new PowerLinesContext())
     {
         var resultService = new ResultService(db, new ResultReader(), new RatingService(db, new SqlBulkInsert <Dataset>(db)), new SqlBulkInsert <Result>(db));
         resultService.Upload(true);
     }
 }
コード例 #4
0
 public RatingService(PowerLinesContext context, IBulkInsert <Dataset> bulkInsert)
 {
     db = context;
     this.bulkInsert = bulkInsert;
 }
コード例 #5
0
 public SqlBulkInsert(PowerLinesContext context)
 {
     db      = context;
     connStr = ConfigurationManager.ConnectionStrings["PowerLinesContext"].ConnectionString;
 }
コード例 #6
0
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     UserManager   = userManager;
     SignInManager = signInManager;
     this.db       = new PowerLinesContext();
 }
コード例 #7
0
 public AccountController()
 {
     this.db = new PowerLinesContext();
 }
コード例 #8
0
 public UploadController()
 {
     db             = new PowerLinesContext();
     resultService  = new ResultService(db, new ResultReader(), new RatingService(db, new SqlBulkInsert <Dataset>(db)), new SqlBulkInsert <Result>(db));
     fixtureService = new FixtureService(db, new FixtureReader());
 }
コード例 #9
0
 public RatingController()
 {
     db            = new PowerLinesContext();
     ratingService = new RatingService(db, new SqlBulkInsert <Dataset>(db));
 }
コード例 #10
0
 public BankController(PowerLinesContext context)
 {
     this.db = context;
 }
コード例 #11
0
 public BankController()
 {
     this.db = new PowerLinesContext();
 }
コード例 #12
0
 public TrackerController(PowerLinesContext context)
 {
     this.db = context;
 }
コード例 #13
0
 public TrackerController()
 {
     this.db = new PowerLinesContext();
 }
コード例 #14
0
 public FixtureService(PowerLinesContext context, IFixtureReader fixtureReader)
 {
     db = context;
     this.fixtureReader = new FixtureReader();
 }