Example #1
0
 public static bool Try()
 {
     try
     {
         using (var db = new TeacherHelperContext())
         {
             return(db.Database.CanConnect());
         }
     }
     catch (Exception)
     {
         return(false);
     }
 }
Example #2
0
 public UsersService()
 {
     this.dbContext = new TeacherHelperContext();
 }
Example #3
0
 public SubjectsService()
 {
     this.dbContext = new TeacherHelperContext();
 }
Example #4
0
 public AuthenticationService()
 {
     dbContext = new TeacherHelperContext();
 }
Example #5
0
 public TestService()
 {
     db = new TeacherHelperContext();
 }
Example #6
0
 public QuestionsService()
 {
     db = new TeacherHelperContext();
 }
Example #7
0
 public TestGenerationService()
 {
     this.db = new TeacherHelperContext();
 }