Exemplo n.º 1
0
        public SqlUserStore(string connectionStringName)
        {
            _connectionString = ConfigurationManager.ConnectionStrings[connectionStringName].ConnectionString;

            _repository = new SqlRepository(connectionStringName);
            _roleStote  = new SqlRoleStore <IdentityRole>(_repository);
        }
        public SqlUserStore(string connectionStringName)
        {
            _connectionString = ConfigurationManager.ConnectionStrings[connectionStringName].ConnectionString;
            //_userRepository = new UserRepository<TUser>(_connectionString);
            //_userLoginRepository = new UserLoginRepository(_connectionString);
            //_userClaimRepository = new UserClaimRepository<TUser>(_connectionString);
            //_userRoleRepository = new UserRoleRepository<TUser>(_connectionString);

            _repository = new SqlRepository(connectionStringName);
            _roleStote  = new SqlRoleStore <IdentityRole <TKey, IdentityUserRole <TKey> >, TKey>(_repository);
        }