Exemplo n.º 1
0
 private AdminMasterService()
 {
     connectionFactory = ConnectionHelper.GetConnection();
     context           = new DbContext(connectionFactory);
     adminRepo         = new AdminRepository(context);
 }
Exemplo n.º 2
0
 public StudentService()
 {
     connectionFactory  = ConnectionHelper.GetConnection();
     context            = new DbContext(connectionFactory);
     studentsRepository = new StudentsRepository(context);
 }