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

            return(View(model));
        }
Esempio n. 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(); });
        }
Esempio n. 3
0
 public InitialHostDbBuilder(ManageDbContext context)
 {
     _context = context;
 }
Esempio n. 4
0
 public DefaultTenantCreator(ManageDbContext context)
 {
     _context = context;
 }
 public TenantRoleAndUserBuilder(ManageDbContext context, int tenantId)
 {
     _context  = context;
     _tenantId = tenantId;
 }
Esempio n. 6
0
 public StudentRepository(ManageDbContext context)
 {
     _context = context ?? throw new ArgumentException(nameof(context));
 }
Esempio n. 7
0
 public OrganisantionDAO()
 {
     db = new ManageDbContext();
 }
Esempio n. 8
0
 public DefaultEditionsCreator(ManageDbContext context)
 {
     _context = context;
 }
 public Teach_CourseRepository(ManageDbContext context)
 {
     _context = context ?? throw new ArgumentException(nameof(context));
 }
Esempio n. 10
0
 public UserDAO()
 {
     db = new ManageDbContext();
 }
Esempio n. 11
0
 public LoginRepository(ManageDbContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Esempio n. 12
0
 public DefaultLanguagesCreator(ManageDbContext context)
 {
     _context = context;
 }
Esempio n. 13
0
 public HostRoleAndUserCreator(ManageDbContext context)
 {
     _context = context;
 }
Esempio n. 14
0
 public DefaultSettingsCreator(ManageDbContext context)
 {
     _context = context;
 }
Esempio n. 15
0
 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));
 }
Esempio n. 16
0
 public SupportingMaterialsDAO()
 {
     db = new ManageDbContext();
 }