protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            //Database.SetInitializer(new IdentitySeedData());
            DbEntitiesContext context = new DbEntitiesContext();

            IdentitySeedData.PerformInitialSetup(context);
        }
Exemplo n.º 2
0
 public EraController(DbEntitiesContext context)
 {
     eraService = new EraService(context);
 }
 public GameRatingService(DbEntitiesContext context)
 {
     gameRatingRepository = new GameRatingRepository(context);
 }
Exemplo n.º 4
0
 public DirectorRepository(DbEntitiesContext context)
     : base(context)
 {
     this.context = context;
 }
 public DeveloperService(DbEntitiesContext context)
 {
     developerRepository = new DeveloperRepository(context);
 }
Exemplo n.º 6
0
 public GenreService(DbEntitiesContext context)
 {
     genreRepository = new GenreRepository(context);
 }
Exemplo n.º 7
0
 public HomeController(DbEntitiesContext context)
 {
     _context = context;
 }
 public DeveloperRepository(DbEntitiesContext context)
 {
     this.context = context;
 }
Exemplo n.º 9
0
 public GenreController(DbEntitiesContext context)
 {
     genreService = new GenreService(context);
 }
Exemplo n.º 10
0
 public DirectorService(DbEntitiesContext context)
 {
     directorRepository = new DirectorRepository(context);
 }
Exemplo n.º 11
0
 public GenericService(DbEntitiesContext context)
 {
     repository = new GenericRepository <T>(context);
 }
Exemplo n.º 12
0
 public MovieService(DbEntitiesContext context)
 {
     movieRepository = new MovieRepository(context);
 }
 public UserGameRatingService(DbEntitiesContext context)
 {
     userGameRatingRepository = new UserGameRatingRepository(context);
 }
 public UserGameRatingRepository(DbEntitiesContext context)
 {
     this.context = context;
 }
Exemplo n.º 15
0
 public WorksController(DbEntitiesContext context)
 {
     workService = new WorkService(context);
 }
Exemplo n.º 16
0
        public HomeController()
        {
            var context = new DbEntitiesContext();

            bcRepo = new BannedClientHistoryRepository(context);
        }
Exemplo n.º 17
0
 public GenericRepository(DbEntitiesContext context)
 {
     this.context = context;
 }
Exemplo n.º 18
0
 public ComposerService(DbEntitiesContext context)
 {
     composerRepository = new ComposerRepository(context);
 }
 public GameStatusService(DbEntitiesContext context)
 {
     gameStatusRepository = new GameStatusRepository(context);
 }
Exemplo n.º 20
0
 public UserRepository(DbEntitiesContext context)
 {
     this.context = context;
 }
Exemplo n.º 21
0
 public EraService(DbEntitiesContext context)
 {
     eraRepository = new EraRepository(context);
 }
Exemplo n.º 22
0
 public UserGameStatusRepository(DbEntitiesContext context)
 {
     this.context = context;
 }
 public UserService(DbEntitiesContext context)
 {
     userRepository = new UserRepository(context);
 }
Exemplo n.º 24
0
 public ComposersController(DbEntitiesContext context)
 {
     composerService = new ComposerService(context);
 }
 public GamesController(DbEntitiesContext context)
 {
     gameService      = new GameService(context);
     developerService = new DeveloperService(context);
     genreService     = new GenreService(context);
 }
Exemplo n.º 26
0
 public MoviesController(DbEntitiesContext context)
 {
     movieService = new MovieService(context);
 }
Exemplo n.º 27
0
 public EraRepository(DbEntitiesContext context)
     : base(context)
 {
     this.context = context;
 }
Exemplo n.º 28
0
 public DevelopersController(DbEntitiesContext context)
 {
     developerService = new DeveloperService(context);
 }
Exemplo n.º 29
0
 public ComposerRepository(DbEntitiesContext context)
     : base(context)
 {
     this.context = context;
 }
 public BannedClientHistoryRepository(DbEntitiesContext context)
 {
     this.context = context;
     clients      = context.BannedClientsHistory;
 }