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

    How Can use Multiple Entity Framework File in web application asp.net

    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.


    Thanks,

    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
    Hi
    You can create two separate EDMX for this

    I have mention below code sample 2 edmx initialization

    Database-1

    TestEntities obj = new TestEntities();


    Database-2

    DBTEMPEntities obj1 = new DBTEMPEntities();


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

    Name : Dotnet Developer-2015
    Email Id :kumaraspcode2009@gmail.com

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


Sign In to post your comments