UserManager and UserStore

Nov 10, 2014 at 4:08 AM
sorry if the question could be silly, but I`m a bit confused between UserManager and UserStore.

I see that the "default" use in identity 2 is using the UserManager, in fact I used it using EntityFramework following all the tutorials before switching to Table Storage using this NugetPackage.
Following the documentation for the configuration for an MVC site, all works correctly.

But now I see with the new 1.5 version that I can also create an UserStore and have some other methods like FindAllByEmailAsync that I do not have using the UserManager.

What should I use? Should I create in the Controller a "UserStore" only if I need methods not included with "UserManager" or the last should be excluded at all?

I also noticed that after the last update, something like:

var usersList = UserManager.Users.ToList();

is incredibly slow, I have 42 records in the table and it needs 2 minutes to retrieve it all while before only some seconds.
Is there a better solution to retrieve all records in a table, or I need to change something?

Thank you
Nov 11, 2014 at 8:56 PM
After some researches I opened an Issue in the apposite section.
Nov 26, 2014 at 3:57 AM
Issue resolved in release 1.5.1 and higher. Thanks - DM
Marked as answer by dotnetdavy on 11/25/2014 at 8:57 PM