Esempio n. 1
0
 /// <summary>
 /// Checks for the existing DB Instance if available then return it else create it and then return it
 /// </summary>
 /// <returns>Return the Instance of the DB</returns>
 public static EAT_DBContext getDBInstance()
 {
     if (_DBContextInstance == null)
     {
         _DBContextInstance = new EAT_DBContext();
     }
     return(_DBContextInstance);
 }
Esempio n. 2
0
 public EventRegistrationDAL(ICheckStudentExists checkStudentExists, EAT_DBContext eatDbContext)
 {
     _checkStudentExists = checkStudentExists;
     _eatDBContext       = eatDbContext;
 }
Esempio n. 3
0
 public CheckStudentExists(EAT_DBContext eatDbContext)
 {
     _eatDBContext = eatDbContext;
 }