grandchamp / Identity.Dapper

Identity package that uses Dapper instead EntityFramework for use with .NET Core
MIT License
268 stars 62 forks source link

UserManager.Users is not implemented #56

Closed sibstark closed 6 years ago

sibstark commented 6 years ago

When i try to get all Users from Usermanger i get an

An exception of type 'System.NotImplementedException' occurred in Identity.Dapper.dll but was not handled in user code: 'The method or operation is not implemented.'
   at Identity.Dapper.Stores.DapperUserStore`7.get_Users()

exception.

var result = UserManager.Users.ToList();
sibstark commented 6 years ago

I found this code in source. How can i get all users? Or i need to implement this feature myself?

        public IQueryable<TUser> Users
        {
            get
            {
                //Impossible to implement IQueryable with Dapper
                throw new NotImplementedException();
            }
        }
grandchamp commented 6 years ago

You'll have to rely on your own implementation for this. This relies heavily on EntityFramework implementation, because i can't return a IQueryable object from Dapper.

sibstark commented 6 years ago

Oh, it is sad :(