giorgos07 / Daarto

Dapper implementation of ASP.NET Core Identity stores.
260 stars 51 forks source link

Maybe we should be able to get a list with all users in it #13

Open renatoeufe opened 4 years ago

renatoeufe commented 4 years ago

:( public override IQueryable<TUser> Users => throw new NotSupportedException();

Sajeewa-Diss commented 4 years ago

I wanted to implement this myself and similarly for the Roles property in the Roles store. However, both run into the same problem. To return an IQueryable in Dapper we would have to bodge it by returning an IEnumerable AS IQueryable. I think a cleaner solution is not implement it at all.

renatoeufe commented 4 years ago

I needed to expose an endpoint in my REST API in order to return a list of all users, had no choice 🤷🏻‍♂️