Reputation: 313
I am struggling with a basic problem. Keep my ASP.NET Core Identity context separate from my business context or combine the two.
Philosophically, it seems good to keep them separate. If I want to upgrade .NET Core at some point in the future, I have fewer issues if my identity context is separate.
Practically, it seems like a good idea to combine them. Otherwise, I am creating another user table or doing some weird workarounds to get user information from navigation properties.
How do you handle Identity contexts in .NET Core?
Upvotes: 3
Views: 1329
Reputation: 3050
In my experience, its a good idea to keep identity context, separate from your business logic.
So, yes, best to use different context/database.
note : I am assuming, each context is linked to a different database. This is a given, but, for the sake of clarity, putting it here.
Upvotes: 3