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