コード例 #1
0
 public FreshersService()
 {
     connectionFactory  = ConnectionHelper.GetConnection();
     context            = new DbContext(connectionFactory);
     freshersRepository = new FreshersRepository(context);
 }
コード例 #2
0
 public CollegesService()
 {
     connectionFactory  = ConnectionHelper.GetConnection();
     context            = new DbContext(connectionFactory);
     collegesRepository = new CollegesRepository(context);
 }
コード例 #3
0
 private AdminMasterService()
 {
     connectionFactory = ConnectionHelper.GetConnection();
     context           = new DbContext(connectionFactory);
     adminRepo         = new AdminRepository(context);
 }
コード例 #4
0
 private RolesService()
 {
     connectionFactory = ConnectionHelper.GetConnection();
     context           = new DbContext(connectionFactory);
     rolesRepo         = new RolesRepository(context);
 }
コード例 #5
0
 public StudentService()
 {
     connectionFactory  = ConnectionHelper.GetConnection();
     context            = new DbContext(connectionFactory);
     studentsRepository = new StudentsRepository(context);
 }