/// <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); }
public EventRegistrationDAL(ICheckStudentExists checkStudentExists, EAT_DBContext eatDbContext) { _checkStudentExists = checkStudentExists; _eatDBContext = eatDbContext; }
public CheckStudentExists(EAT_DBContext eatDbContext) { _eatDBContext = eatDbContext; }