示例#1
0
 public SRoleService()
 {
     rRepository   = new SRoleRepository();
     resRepository = new SResourceRepository(rRepository.DbCondext);
     pRepository   = new SPermissionRepository(rRepository.DbCondext);
     uRepository   = new SUserRepository(rRepository.DbCondext);
     rpRepository  = new SRolePermissionRepository(rRepository.DbCondext);
     opRepository  = new SOPermissionRepository(rRepository.DbCondext);
     cpRepository  = new SCPermissionRepository(rRepository.DbCondext);
 }
示例#2
0
 public SUserService()
 {
     uRepository = new SUserRepository();
 }
示例#3
0
 public SOrganizationService()
 {
     oRepository = new SOrganizationRepository();
     uRepository = new SUserRepository(oRepository.DbCondext);
 }