示例#1
0
 public ProfessorsDal(CollegeDbContext collegeDbContext)
 {
     _collegeDbContext = collegeDbContext;
 }
示例#2
0
        public ProfessorsDal(CollegeDbContext collegeDbContext, ILogger <ProfessorsDal> logger)
        {
            _collegeDbContext = collegeDbContext ?? throw new ArgumentNullException(nameof(collegeDbContext));

            _logger = logger ?? throw new ArgumentNullException(nameof(logger));
        }