locked
Customize Asp .Net Core Identity RRS feed

  • Question

  • User1712504604 posted
    I am working on a project which implements onion/layered architecture that has its own pros and cons. now I wanna implement asp .net core identity but with this, I have to violate the rules of architecture. I wanna implement this with the same context as using other entities of the system instead of user manager.
    It is requested to you please if anyone of you has any information regarding this share it with me so that I can complete this project on time with ease.
    Tuesday, March 2, 2021 2:41 PM

Answers

  • User-821857111 posted

    The UserManager is a service, not a context. You configure the context to use in ConfigureServices:

    services.AddDefaultIdentity<YourUserClass>().AddEntityFrameworkStores<YourContext>();
    
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 2, 2021 3:09 PM