Single or multiple DbContext File in mvc4 using Entity framework 6

Ammar

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.

Heberda

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Using Entity Framework 6 with Multiple DB Schemas but using One DBContext

From Dev

Using INotifyPropertyChanged with Entity Framework 6 DbContext Generator

From Dev

Entity Framework 6 and Asp.Net Identity UserManager: Multiple DbContext

From Dev

Entity Framework 6 and Asp.Net Identity UserManager: Multiple DbContext

From Dev

MVC4 Entity Framework 6 Model State Validation Issues

From Dev

Entity Framework 7 - single dbcontext, different schemas

From Dev

How to Rename DBContext in Entity Framework 6

From Dev

Entity Framework 6 DBContext disable delete option

From Dev

Entity Framework 6 EntityDataSource not calling SaveChanges in DbContext

From Dev

Show single data column in ASP.NET MVC 5 using Entity Framework 6

From Dev

Do Multiple Linq To Entity Queries In Entity Framework Using One DBContext Connect Only Once To The Database

From Dev

Using a single context from many threads in Entity Framework 6

From Dev

Struggling using MVC 5 and Entity Framework 6

From Dev

Is it Possible to Get Multiple Data Type using a Single Query in Entity Framework?

From Dev

Using PowerShell to create Entity Framework DbContext

From Dev

Using DbContext inside a Repository Class in Entity Framework

From Dev

Entity Framework profiler - ASP.NET MVC4 with EF 6 -Unable to determine the provider name

From Dev

Entity Framework profiler - ASP.NET MVC4 with EF 6 -Unable to determine the provider name

From Dev

mvc 4 - c# - Entity Framework - Metadata using edmx file

From Dev

Multiple relationships to single table Entity Framework asp.net MVC

From Dev

Entity Framework with Owin DbContext per request in MVC

From Dev

Changes to DbContext not saved - MVC Entity framework

From Dev

PieChart in mvc4 from Entity Framework

From Dev

Dropdownlist and MVC4 Entity Framework

From Dev

Entity Framework 6 - Multiple DefaultConnectionFactory?

From Dev

Using Entity Framework 6 class library project with MVC 6

From Dev

How to retrieve image from database without using Entity Framework in ASP.NET MVC4

From Dev

upload image in server folder and save path in Sqlserver using entity framework mvc4

From Dev

Unable to Use an HtmlHelper in Razor syntax in MVC4 Intranet App using Entity Framework

Related Related

  1. 1

    Using Entity Framework 6 with Multiple DB Schemas but using One DBContext

  2. 2

    Using INotifyPropertyChanged with Entity Framework 6 DbContext Generator

  3. 3

    Entity Framework 6 and Asp.Net Identity UserManager: Multiple DbContext

  4. 4

    Entity Framework 6 and Asp.Net Identity UserManager: Multiple DbContext

  5. 5

    MVC4 Entity Framework 6 Model State Validation Issues

  6. 6

    Entity Framework 7 - single dbcontext, different schemas

  7. 7

    How to Rename DBContext in Entity Framework 6

  8. 8

    Entity Framework 6 DBContext disable delete option

  9. 9

    Entity Framework 6 EntityDataSource not calling SaveChanges in DbContext

  10. 10

    Show single data column in ASP.NET MVC 5 using Entity Framework 6

  11. 11

    Do Multiple Linq To Entity Queries In Entity Framework Using One DBContext Connect Only Once To The Database

  12. 12

    Using a single context from many threads in Entity Framework 6

  13. 13

    Struggling using MVC 5 and Entity Framework 6

  14. 14

    Is it Possible to Get Multiple Data Type using a Single Query in Entity Framework?

  15. 15

    Using PowerShell to create Entity Framework DbContext

  16. 16

    Using DbContext inside a Repository Class in Entity Framework

  17. 17

    Entity Framework profiler - ASP.NET MVC4 with EF 6 -Unable to determine the provider name

  18. 18

    Entity Framework profiler - ASP.NET MVC4 with EF 6 -Unable to determine the provider name

  19. 19

    mvc 4 - c# - Entity Framework - Metadata using edmx file

  20. 20

    Multiple relationships to single table Entity Framework asp.net MVC

  21. 21

    Entity Framework with Owin DbContext per request in MVC

  22. 22

    Changes to DbContext not saved - MVC Entity framework

  23. 23

    PieChart in mvc4 from Entity Framework

  24. 24

    Dropdownlist and MVC4 Entity Framework

  25. 25

    Entity Framework 6 - Multiple DefaultConnectionFactory?

  26. 26

    Using Entity Framework 6 class library project with MVC 6

  27. 27

    How to retrieve image from database without using Entity Framework in ASP.NET MVC4

  28. 28

    upload image in server folder and save path in Sqlserver using entity framework mvc4

  29. 29

    Unable to Use an HtmlHelper in Razor syntax in MVC4 Intranet App using Entity Framework

HotTag

Archive