i am using entity framework 5 in mvc4 application .i want to ask about multiple DbContexts files in single project. is this a good approach to use multiple dbContext files in single mvc4 project using Entity Framework 5 or should i use only single DbContext File or Multiple please guide me
Thank you.
As previously stated it is good practice to have a one DbContext file per database. So if you are running for example, a blog and shop these would no doubt be separate databases therefore separate DbContexts. A project I am currently on uses one database and roughly 20 tables, this has one DbContext. Good luck.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments