Userstore With My Own Database
I'm trying to use my own SQL Server database to store the user permissions. I initialize the UserStore with my context like this (I tried with the default constructor also) UserMan
Solution 1:
Using the following connection string solved the problem for me :
<add name="DefaultConnection" connectionString="Data Source=localhost;Initial Catalog=Epicerie;Integrated Security=True;" providerName="System.Data.SqlClient" />
Solution 2:
Can you post your MyContext class? An attempt you can make is to change your first code snippet to use your DbEpicerieEntities class instead of the MyContext class.
UserManagerFactory = () =>newUserManager<IdentityUser>(newUserStore<IdentityUser>(newDbEpicerieEntities()));
Post a Comment for "Userstore With My Own Database"