public EtudiantsController() { context = new CollegeContext(); }
public CoursesController(CollegeContext context) { _context = context; }
public ListStudentsModel(CollegeContext db) { _db = db; }
public UnitOfWork(CollegeContext context) { _context = context; }
public StudentController() { context = new CollegeContext(); }
public DeleteStudentDetailsModel(CollegeContext db) { _db = db; }
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(); }
public ApplicationStudentRepository(CollegeContext context) { _context = context; }
// 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); }
public ClassService(CollegeContext context, IExamService examService) : base(context) { this.examService = examService; }
public CreateModel(CollegeContext db) { _db = db; }
public StudentService(CollegeContext context) : base(context) { }
public StudentsController(CollegeContext context) { _context = context; }
public MatiéreSimpleUtilisateurController() { context = new CollegeContext(); }
public CreateStudentModel(CollegeContext db) { _db = db; }
public GenericRepository(CollegeContext context) { this.context = context; this.dbSet = context.Set <T>(); }