コード例 #1
0
        public UnitOfWorkWebApi(ApplicationContext context) : base(context)
        {
            /*************Authorization************/
            Claims                 = new ClaimRepository(context);
            ClientApplications     = new ClientApplicationRepository(context);
            ClientApplicationUtils = new ClientApplicationUtilRepository(context);
            RoleClaims             = new RoleClaimRepository(context);
            RoleEntityClaims       = new RoleEntityClaimRepository(context);
            Roles            = new RoleRepository(context);
            UserClaims       = new UserClaimRepository(context);
            UserEntityClaims = new UserEntityClaimRepository(context);
            Users            = new UserRepository(context);
            UserRoles        = new UserRoleRepository(context);
            UserUtils        = new UserUtilRepository(context);
            Applications     = new ApplicationRepository(context);
            ApplicationUsers = new ApplicationUserRepository(context);
            /*************Authorization************/

            /*************Instances************/
            Matches = new MatchRepository(context);
            Teams   = new TeamRepository(context);
            Players = new PlayerRepository(context);
            Stats   = new StatRepository(context);
            /*********End of Instances*********/
        }
コード例 #2
0
 public UnitOfWorkAuthorization(AuthorizationContext context) : base(context)
 {
     Claims                 = new ClaimRepository(context);
     ClientApplications     = new ClientApplicationRepository(context);
     ClientApplicationUtils = new ClientApplicationUtilRepository(context);
     RoleClaims             = new RoleClaimRepository(context);
     RoleEntityClaims       = new RoleEntityClaimRepository(context);
     Roles            = new RoleRepository(context);
     UserClaims       = new UserClaimRepository(context);
     UserEntityClaims = new UserEntityClaimRepository(context);
     Users            = new UserRepository(context);
     UserRoles        = new UserRoleRepository(context);
     UserUtils        = new UserUtilRepository(context);
     Applications     = new ApplicationRepository(context);
     ApplicationUsers = new ApplicationUserRepository(context);
 }