Beispiel #1
0
        // GET: Organisantion
        public ActionResult Index()
        {
            var db    = new ManageDbContext();
            var model = db.Org_Add_View.ToList();

            return(View(model));
        }
Beispiel #2
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ManageDbContext context)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            using (context)
            {
                context.Database.Migrate();
            }

            app.UseRouting();

            app.UseEndpoints(endpoints => { endpoints.MapControllers(); });
        }
Beispiel #3
0
 public InitialHostDbBuilder(ManageDbContext context)
 {
     _context = context;
 }
 public DefaultTenantCreator(ManageDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(ManageDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Beispiel #6
0
 public StudentRepository(ManageDbContext context)
 {
     _context = context ?? throw new ArgumentException(nameof(context));
 }
Beispiel #7
0
 public OrganisantionDAO()
 {
     db = new ManageDbContext();
 }
Beispiel #8
0
 public DefaultEditionsCreator(ManageDbContext context)
 {
     _context = context;
 }
 public Teach_CourseRepository(ManageDbContext context)
 {
     _context = context ?? throw new ArgumentException(nameof(context));
 }
Beispiel #10
0
 public UserDAO()
 {
     db = new ManageDbContext();
 }
Beispiel #11
0
 public LoginRepository(ManageDbContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Beispiel #12
0
 public DefaultLanguagesCreator(ManageDbContext context)
 {
     _context = context;
 }
 public HostRoleAndUserCreator(ManageDbContext context)
 {
     _context = context;
 }
Beispiel #14
0
 public DefaultSettingsCreator(ManageDbContext context)
 {
     _context = context;
 }
 public CourseRepository(ManageDbContext context, ITeach_CourseRepository teach_CourseRepository)
 {
     _context = context ?? throw new ArgumentException(nameof(context));
     _teach_CourseRepository = teach_CourseRepository ?? throw new ArgumentException(nameof(teach_CourseRepository));
 }
 public SupportingMaterialsDAO()
 {
     db = new ManageDbContext();
 }