-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I want to populate and show a table with user's info on page.
There is my function:
public void GetUsers()
{
// Collection to hold users
ColUsers = new List<P2User>();
// get users from _UserManager
var user = _UserManager.Users.Select(x => new P2User
{
Id = x.Id,
UserName = x.UserName,
Email = x.Email,
PasswordHash = "*****"
});
foreach (var item in user)
{
ColUsers.Add(item);
}
}
The problem is that _UserManager.Users is null.
Thats is AspNetCore.Identity.PostgreSQL implementation:
public IQueryable<TUser> Users { get; }
That is Microsoft implementation:
public IQueryable<TUser> Users
{
get { return _userStore.EntitySet; }
}
How to populate the users collection?
Metadata
Metadata
Assignees
Labels
No labels