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