Пример #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, IServiceProvider serviceProvider)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
                {
                    HotModuleReplacement = true
                });
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }

            app.UseStaticFiles();

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

                routes.MapSpaFallbackRoute(
                    name: "spa-fallback",
                    defaults: new { controller = "Home", action = "Index" });
            });

            AcademicContext.InitDb(serviceProvider);
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
                using (var context = new AcademicContext())
                {
                    //var d = context.Level.Where(x => x.SchoolId == InitialValues.CustomSession["SchoolId"]). ToList();
                    //cmbLevel.DataSource = d;
                    //cmbLevel.DataBind();
                }
                var helper = new DbHelper.Structure();
                cmbLevel.Width = 100;

                //cmbLevel.DataSource = helper.GetLevels(InitialValues.CustomSession["SchoolId"]);
                cmbLevel.DataMember     = "Id";
                cmbLevel.DataTextField  = "Name";
                cmbLevel.DataValueField = "Id";
                cmbLevel.DataBind();
            }
        }
Пример #3
0
 public Teacher()
 {
     Context = new AcademicContext();
 }
Пример #4
0
 public MessageHelper()
 {
     Context = new AcademicContext();
 }
Пример #5
0
 public MatriculaController(AcademicContext dbContext)
 {
     DbContext = dbContext;
 }
Пример #6
0
 public Event()
 {
     Context = new AcademicContext();
 }
Пример #7
0
 public Student()
 {
     Context = new AcademicContext();
 }
Пример #8
0
 public UserFileSeeder(AcademicContext context)
 {
     this._context = context;
 }
Пример #9
0
 public WorkingWithFiles()
 {
     Context = new AcademicContext();
 }
 public StudentController(AcademicContext acadamicContext)
 {
     this.acadamicContext = acadamicContext;
 }
Пример #11
0
 public Grade()
 {
     Context = new AcademicContext();
 }
Пример #12
0
 public TurmaController(AcademicContext dbContext)
 {
     DbContext = dbContext;
 }
Пример #13
0
 public ReviewsController(AcademicContext db)
 {
     _db = db;
 }
Пример #14
0
 public Structure()
 {
     Context = new AcademicContext();
 }
Пример #15
0
 public User()
 {
     Context = new AcademicContext();
 }
Пример #16
0
 public RoleSeeder(AcademicContext context)
 {
     this._context = context;
 }
Пример #17
0
 public GenderSeeder(AcademicContext context)
 {
     this._context = context;
 }
Пример #18
0
 public AcademicYearSeeder(AcademicContext context)
 {
     this._context = context;
 }
Пример #19
0
 public Account()
 {
     Context = new AcademicContext();
 }
Пример #20
0
 public EstadoController(AcademicContext dbContext)
 {
     DbContext = dbContext;
 }
Пример #21
0
 public Staff()
 {
     Context = new AcademicContext();
 }
Пример #22
0
 public AlunoController(AcademicContext dbContext)
 {
     DbContext = dbContext;
 }
Пример #23
0
 public DisciplinaController(AcademicContext dbContext)
 {
     DbContext = dbContext;
 }
Пример #24
0
 public Batch()
 {
     Context = new AcademicContext();
 }
Пример #25
0
 public AcademicYear()
 {
     Context = new AcademicContext();
 }
 public ProfessorController(AcademicContext db)
 {
     _db = db;
 }
Пример #27
0
 public StudentController(AcademicContext dbContext, IOptions <AppSettings> options)
 {
     DbContext   = dbContext;
     AppSettings = options.Value;
 }
Пример #28
0
 public SubjectSection()
 {
     Context = new AcademicContext();
 }
 public ProfessorController(AcademicContext dbContext, IOptions <AppSettings> options)
 {
     DbContext   = dbContext;
     AppSettings = options.Value;
 }
Пример #30
0
 public Office()
 {
     Context = new AcademicContext();
 }