示例#1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AutoMapperConfig.RegisterMappings();

            var db = new TcbcslDbContext();
            Consts.PlayerPoolTeamName = db.TeamYears
                                          .Single(ty => ty.TeamId == Consts.PlayerPoolTeamId && ty.Year == Consts.CurrentYear)
                                          .FullName;
        }
示例#2
0
 public ScheduleService(TcbcslDbContext dbContext)
 {
     _dbContext = dbContext;
 }
示例#3
0
 public ContentService(TcbcslDbContext dbContext)
 {
     _db = dbContext;
 }