Click here to Skip to main content
15,891,621 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I have 2 areas in my MVC5 application.And Each model have its own edmx file with the related tables in them. I have few ASP.Net Identity related tables that are common for both. How do i proceed with this i.e
1)Can i have the aspnetUsers tables in both the models of different areas ?

Please guide me with an appropriate article on this.
Posted

1 solution

You can have same tables in different models. But the Model EDMX will be different as long as the databases are different. So if you have multiple databases to be used in your project, then it is better to use Linked Server in your application.
MSDN LINKED SERVER[^]
You can follow the above link for more details

Thanks
 
Share this answer
 
Comments
goshan2011 14-Sep-15 0:45am    
I am using single database only. But i am using MVC areas concept, so want to have the tables related to the specific area as a separate model inside it. In such case i am encountering problems if i have any table common across the areas.

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