locked
Extend ApplicationUserManager RRS feed

  • Question

  • User-187006993 posted

    Hi,

    i'am using identity framework 2 and implemented a custom user store to get users etc. In our existing database we have stored some other kind of user data, which is needed if the the user requests it. To get this data we must implement some custom methods to fetch this data from the user database.

    My question is: what is the Best practice to do this? Should we extend the ApplicationUserManager with some functions and implement another store to fetch the additional data or should we extend our UserStore class with new functions?

    Thanks!

    Friday, December 12, 2014 5:16 AM

Answers

  • User-734925760 posted

    Hi,

    So far as I know, if you want to get data from existing DataBase, you can configure the connectionstring in the web.config file. As you want to get some Data from the DataBase, you can open the connectionstring to get data.

    For more information, please refer to the similar thread by the link below:

    http://stackoverflow.com/questions/18297052/asp-net-identity-how-to-set-target-db

    Hope it's useful for you.

    Best Regards,

    Michelle Ge

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 15, 2014 3:53 AM