You must Sign In to post a response.
  • Category: ASP.NET

    How Can use Multiple Entity Framework File in web application

    Hi All,

    Please suggest to me, i want to use multiple entity framework file in single project because i have more than 500 tables in single edmx file so please suggest to me , how can use it.

    please also tell us to about entity framework 4.0 limitations.

    my web application take time to fetch data from server.


    Atul Sharma
  • #761759
    1. You can keep the models in the separate project(.dll) and you can refer it in your mvc application
    2. You can create multiple connection string based on your context

    By Nathan
    Direction is important than speed

  • #761760
    You can create two separate EDMX for this

    I have mention below code sample 2 edmx initialization


    TestEntities obj = new TestEntities();


    DBTEMPEntities obj1 = new DBTEMPEntities();

    When will you create edmx automatically generate connection string in your webconfig

    Name : Dotnet Developer-2015
    Email Id :

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • Sign In to post your comments