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