Exemple #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);
 }
Exemple #2
0
 public SResourceService()
 {
     rRepository = new SResourceRepository();
     oRepository = new SOperatorRepository(rRepository.DbCondext);
 }