public RegisterTeacherModel(CollegeDbContext db) { _db = db; // GetRandomID can only be called in the Registration process; // did not belong in the Teacher constructor Teacher.TeacherID = Teacher.GetRandomID(); }
public RegisterStudentModel(CollegeDbContext db) { _db = db; // GetRandomID can only be called in the Registration process; // did not belong in the Student constructor Student.StudentID = Student.GetRandomID(); }
public ProfessorsData(IConfiguration configuration) { var optionsBuilder = new DbContextOptionsBuilder <CollegeDbContext>(); var connectionString = configuration["ConnectionStrings:CollegeDBConnectionString"]; optionsBuilder.UseSqlServer(connectionString); _collegeDbContext = new CollegeDbContext(optionsBuilder.Options); }
private CollegeRepository() { Mapper.Initialize(x => { x.CreateMap <User, UserDto>(); x.CreateMap <Course, CourseDto>(); }); context = new CollegeDbContext(); }
public SendStudentMessageModel(CollegeDbContext db, IConfiguration configuration) { _db = db; _configuration = configuration; accountSid = _configuration["AppSettings:TwilioAccountSID"]; authToken = _configuration["AppSettings:TwilioAuthToken"]; myTwilioPhoneNumber = _configuration["AppSettings:MyTwilioPhoneNumber"]; mySourceEmailAddress = _configuration["AppSettings:SENDGRID_Default_Source_Email_Address"]; msgMgr = new MessageManager(accountSid, authToken); }
public SeederController( UserManager <User> userManager, SignInManager <User> signInManager, IConfiguration configuration, RoleManager <IdentityRole> roleManager, CollegeDbContext context ) { _userManager = userManager; _signInManager = signInManager; _configuration = configuration; _roleManager = roleManager; _context = context; }
public CourseService(CollegeDbContext context) { _context = context; }
public SubjectSqlData(CollegeDbContext dbContext) { this.dbContext = dbContext; }
public DeleteProgrammeModel(CollegeDbContext db) { _db = db; }
public StudentRepository(CollegeDbContext context) { _context = context; }
public BranchRepository(DbContext SourceNewcollegeContext) : base(SourceNewcollegeContext) { mCollegeDbContext = SourceNewcollegeContext as CollegeDbContext; }
public UpdateProgrammeDetailsModel(CollegeDbContext db) { _db = db; }
public CollegeGroupsController(CollegeDbContext context) { _context = context; }
public CollegeGrpcService(CollegeDbContext collegeDbContext) { _collegeDbContext = collegeDbContext; }
public SqlRepositoryStudentData(CollegeDbContext context) { _context = context; }
public StudentService(CollegeDbContext context) { _context = context; }
public ProfessorDAL(CollegeDbContext collegeDbContext) { _collegeDbContext = collegeDbContext; }
public TermTestCommentRepository(DbContext SourceCollegeContext, DbContext SourceNewcollegeContext) // { mCollegeDbContext = SourceCollegeContext as CollegeDbContext; mNewcollegeDbContext = SourceNewcollegeContext as NewcollegeDbContext; }
public SqlRepositoryEvaluationData(CollegeDbContext context) { _context = context; }
public UpdateModuleDetailsModel(CollegeDbContext db) { _db = db; }
public AddressDAL(CollegeDbContext collegeDbContext, ILogger <AddressDAL> logger) { _collegeDbContext = collegeDbContext; _logger = logger; }
public TopicsController(CollegeDbContext context) { _context = context; }
public ShowTeacherDetailsModel(CollegeDbContext db) { _db = db; }
public DeleteModuleModel(CollegeDbContext db) { _db = db; }
public ShowStudentResultsModel(CollegeDbContext db) { _db = db; }
public ShowStudentDetailsModel(CollegeDbContext db) { _db = db; }
public StudentSqlData(CollegeDbContext dbContext) { this.dbContext = dbContext; }
public ProfessorsController(CollegeDbContext collegeDbContext) { _collegeDbContext = collegeDbContext; }
public ListTeachersModel(CollegeDbContext db) { _db = db; }
public ProfessorsDAL(CollegeDbContext collegeDbContext, ILogger <ProfessorsDAL> logger) { _collegeDbContext = collegeDbContext; _logger = logger; }