コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        public ProfessorsData(IConfiguration configuration)
        {
            var optionsBuilder = new DbContextOptionsBuilder <CollegeDbContext>();

            var connectionString = configuration["ConnectionStrings:CollegeDBConnectionString"];

            optionsBuilder.UseSqlServer(connectionString);

            _collegeDbContext = new CollegeDbContext(optionsBuilder.Options);
        }
コード例 #4
0
        private CollegeRepository()
        {
            Mapper.Initialize(x => {
                x.CreateMap <User, UserDto>();
                x.CreateMap <Course, CourseDto>();
            });


            context = new CollegeDbContext();
        }
コード例 #5
0
        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);
        }
コード例 #6
0
ファイル: SeederController.cs プロジェクト: Dr-SooS/DEEPLOM
 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;
 }
コード例 #7
0
ファイル: CourseService.cs プロジェクト: erchek/college
 public CourseService(CollegeDbContext context)
 {
     _context = context;
 }
コード例 #8
0
 public SubjectSqlData(CollegeDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
コード例 #9
0
 public DeleteProgrammeModel(CollegeDbContext db)
 {
     _db = db;
 }
コード例 #10
0
 public StudentRepository(CollegeDbContext context)
 {
     _context = context;
 }
コード例 #11
0
 public BranchRepository(DbContext SourceNewcollegeContext) : base(SourceNewcollegeContext)
 {
     mCollegeDbContext = SourceNewcollegeContext as CollegeDbContext;
 }
コード例 #12
0
 public UpdateProgrammeDetailsModel(CollegeDbContext db)
 {
     _db = db;
 }
コード例 #13
0
 public CollegeGroupsController(CollegeDbContext context)
 {
     _context = context;
 }
コード例 #14
0
 public CollegeGrpcService(CollegeDbContext collegeDbContext)
 {
     _collegeDbContext = collegeDbContext;
 }
コード例 #15
0
 public SqlRepositoryStudentData(CollegeDbContext context)
 {
     _context = context;
 }
コード例 #16
0
ファイル: StudentService.cs プロジェクト: erchek/college
 public StudentService(CollegeDbContext context)
 {
     _context = context;
 }
コード例 #17
0
 public ProfessorDAL(CollegeDbContext collegeDbContext)
 {
     _collegeDbContext = collegeDbContext;
 }
コード例 #18
0
 public TermTestCommentRepository(DbContext SourceCollegeContext, DbContext SourceNewcollegeContext) //
 {
     mCollegeDbContext    = SourceCollegeContext as CollegeDbContext;
     mNewcollegeDbContext = SourceNewcollegeContext as NewcollegeDbContext;
 }
コード例 #19
0
 public SqlRepositoryEvaluationData(CollegeDbContext context)
 {
     _context = context;
 }
コード例 #20
0
 public UpdateModuleDetailsModel(CollegeDbContext db)
 {
     _db = db;
 }
コード例 #21
0
ファイル: AddressDAL.cs プロジェクト: xmonkeys360/gRPC_Event
        public AddressDAL(CollegeDbContext collegeDbContext, ILogger <AddressDAL> logger)
        {
            _collegeDbContext = collegeDbContext;

            _logger = logger;
        }
コード例 #22
0
 public TopicsController(CollegeDbContext context)
 {
     _context = context;
 }
コード例 #23
0
 public ShowTeacherDetailsModel(CollegeDbContext db)
 {
     _db = db;
 }
コード例 #24
0
 public DeleteModuleModel(CollegeDbContext db)
 {
     _db = db;
 }
コード例 #25
0
 public ShowStudentResultsModel(CollegeDbContext db)
 {
     _db = db;
 }
コード例 #26
0
 public ShowStudentDetailsModel(CollegeDbContext db)
 {
     _db = db;
 }
コード例 #27
0
 public StudentSqlData(CollegeDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public ProfessorsController(CollegeDbContext collegeDbContext)
 {
     _collegeDbContext = collegeDbContext;
 }
コード例 #29
0
 public ListTeachersModel(CollegeDbContext db)
 {
     _db = db;
 }
コード例 #30
0
        public ProfessorsDAL(CollegeDbContext collegeDbContext, ILogger <ProfessorsDAL> logger)
        {
            _collegeDbContext = collegeDbContext;

            _logger = logger;
        }