Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi guys,

I have Database for Identity which is automatically created by IdentityDbContext

And i create my custom database for my Project

but the problem my custom database need to has User table which is found in Identity Database too

User table is common in the two database but i think that is bad approach because of duplication

I need User table in the two database, what can i do???

What I have tried:

I cannot find any answer please help me
Posted
Updated 13-Jun-17 5:20am

1 solution

You don't need two databases. Just point the Identity context to your existing database, and it will create the required tables in that database. Or create your custom tables in the Identity database.

How to add ASP.NET MVC5 Identity Authentication to existing database - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900