public EtudiantsController()
 {
     context = new CollegeContext();
 }
Example #2
0
 public CoursesController(CollegeContext context)
 {
     _context = context;
 }
Example #3
0
 public ListStudentsModel(CollegeContext db)
 {
     _db = db;
 }
Example #4
0
 public UnitOfWork(CollegeContext context)
 {
     _context = context;
 }
Example #5
0
 public StudentController()
 {
     context = new CollegeContext();
 }
 public DeleteStudentDetailsModel(CollegeContext db)
 {
     _db = db;
 }
Example #7
0
 public BaseService(CollegeContext context)
 {
     this.Context = context;
 }
 public ClasseController()
 {
     context = new CollegeContext();
 }
 public LecturersController(CollegeContext context)
 {
     _context = context;
 }
 public CourseController()
 {
     context = new CollegeContext();
 }
 public AbsencesController()
 {
     context = new CollegeContext();
 }
Example #12
0
 public ApplicationStudentRepository(CollegeContext context)
 {
     _context = context;
 }
Example #13
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.

        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, CollegeContext context)
        {
            loggerFactory.AddConsole(Configuration.GetSection("Logging"));
            loggerFactory.AddDebug();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseBrowserLink();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }

            app.UseStaticFiles();

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Home}/{action=Index}/{id?}");
            });


            DbInitializer.Initialize(context);
        }
Example #14
0
 public ClassService(CollegeContext context, IExamService examService)
     : base(context)
 {
     this.examService = examService;
 }
Example #15
0
 public CreateModel(CollegeContext db)
 {
     _db = db;
 }
Example #16
0
 public StudentService(CollegeContext context)
     : base(context)
 {
 }
 public StudentsController(CollegeContext context)
 {
     _context = context;
 }
 public MatiéreSimpleUtilisateurController()
 {
     context = new CollegeContext();
 }
Example #19
0
 public CreateStudentModel(CollegeContext db)
 {
     _db = db;
 }
 public GenericRepository(CollegeContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <T>();
 }